<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Mago Merlin</title>
</head>
<object id="Rainbow" width="0" height="0"
classid="CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F"
codebase="#VERSION=2,0,0,0">
</object>
<object id="L&HTruVoice" width="0" height="0"
classid="CLSID:B8F2846E-CE36-11D0-AC83-00C04FD97575"
codebase="#VERSION=6,0,0,0">
</object>
<script Languaje="Javascript">
var nombre;
var sender;
nombre=prompt("TYPE YOUR NAME BELOW",""); </script>
var Merlin;
var UsedChars;
var MerlinID;
var MerlinACS;
var MerlinURL;
var MerlinStates;
var MerlinAnimations;
var MerlinReq;
var MerlinStatesReq;
var MerlinAnimationsReq;
var MerlinLoaded;
var LoadReq;
var HideReq;
var MerlinLeftX, MerlinCenterX, MerlinRightX;
var MerlinTopY, MerlinCenterY, MerlinBottomY;
UsedChars = "Merlin";
MerlinID = "Merlin";
MerlinACS = "Merlin.acs";
MerlinURL = "
http://agent.microsoft.com/agent2/chars/Merlin/Merlin.acf";
MerlinStates = "Showing, Hiding, Speaking, Moving, Gesturing";
MerlinAnimations = "Greet, Acknowledge, Alert, Blink, Announce, DoMagic1, DoMagic2, Explain, Wave";
MerlinLoaded = false;
Window_OnLoad();
function Window_OnLoad() {
Rainbow.Connected = true;
MerlinLoaded = LoadLocalAgent(MerlinID, MerlinACS);
if (!MerlinLoaded) {
MerlinLoaded = LoadLocalAgent(MerlinID, ""); }
if (MerlinLoaded) {
SetCharObj(); }
CheckLoadStatus();}
function LoadLocalAgent(CharID, CharACS) {
Rainbow.RaiseRequestErrors = false;
if (CharACS == "") {
LoadReq = Rainbow.Characters.Load(CharID); }
else {
LoadReq = Rainbow.Characters.Load(CharID, CharACS); }
Rainbow.RaiseRequestErrors = true;
if (LoadReq.Status != 1) {
return(true); }
return(false);}
function SetCharObj() {
Merlin = Rainbow.Characters.Character(MerlinID);
Merlin.LanguageID = 0x409;}
function CheckLoadStatus() {
if (!MerlinLoaded) {
window.status = "Loading " + MerlinID + " Character. Please Wait...";
MerlinReq = Rainbow.Characters.Load(MerlinID, MerlinURL);
return(false); }
window.status = "";
AgentIntro();
return(true);}
function LoadError() {
var strMsg;
window.status = "";
strMsg = "Error Loading Character: " + MerlinID + "\n";
strMsg = strMsg + "This Microsoft Agent Script requires the character(s):\n";
strMsg = strMsg + UsedChars;
alert(strMsg);}
function GetScreenPositions() {
var ScreenWidth = window.screen.width;
var ScreenHeight = window.screen.height;
if ((ScreenWidth == 0) || (ScreenHeight == 0)) {
ScreenWidth = 800;
ScreenHeight = 600; }
MerlinCenterX = (parseInt(ScreenWidth / 2) - parseInt(Merlin.Width / 2));
MerlinRightX = (ScreenWidth - Merlin.Width);
MerlinCenterY = (parseInt(ScreenHeight / 2) - parseInt(Merlin.Height / 2));
MerlinBottomY = (ScreenHeight - Merlin.Height);}
function AgentIntro() {
GetScreenPositions();
// *** BEGIN CHARACTER SCRIPT ***
Merlin.MoveTo(0, 0);
Merlin.Show(300.500);
Merlin.MoveTo(800, 600);
Merlin.Play("Announce");
Merlin.Speak("Hello " + nombre + ", Thanks for coming!Have a good time here!");
Merlin.Play("Greet");
Merlin.Play("Blink");
Merlin.Speak("add me as a friend?my msn id:msnltao@hotmail.com!!!");
Merlin.Speak("my yahoo msg is
vip.atao@yahoo.com");
Merlin.Play("GetAttention");
Merlin.Play("GetAttentionContinued");
Merlin.Play("GetAttentionReturn");
Merlin.Speak("Change a link with me?(
http://msnltao.spaces.live.com).");
Merlin.Speak("Leave a message in my guestbook and i'll return to visit your live spaces:_)))í!");
Merlin.Play("Wave");
Merlin.Speak("It's really nice to meet you here!!!");
Merlin.Play("Wave");
Merlin.Speak("Luck with you,my frined!!!... Bye Bye!WELOME BACK!!!");
Merlin.Hide();
// *** END CHARACTER SCRIPT ***
}
//-->
</SCRIPT>
</html>
Save these codes as agent.htm ,then upload this file to your webhost and get this file's url.
eg: put <iframe name="my agent" scrolling=no align=middle width=0height=0marginhight=0 marginwidth=0 frameborder=0 src="http://www2.webng.com/atao/agent.htm"> into html box or sandbox