Merlin in my page

Written by @kerixa 21 August 2012

If you want to have a more attractive website, use Merlin. This is a way to show Merlin toy on your website. He comes out and tells you things. You can easily set what you want him to say to your visitor. Just edit the code. Besides, the name of each animation that is running will be written for you. Do not forget to download the attachment and extract it beside you main code.

Code Snippet:

                                                
                                                <!-- this script is provided by www.javascriptfreecode.com coded by: Kerixa Inc. -->
<OBJECT id=wolfi classid=CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F>></OBJECT>
<SCRIPT language=JavaScript type=text/javascript> 
function LoadLocalAgent(CharID, CharACS) {
LoadReq = wolfi.Characters.Load(CharID, CharACS);

return(true);

} 

var MerlinID; 

var MerlinACS; 

wolfi.Connected = true; 
MerlinLoaded = LoadLocalAgent(MerlinID, MerlinACS); 

Merlin = wolfi.Characters.Character(MerlinID); 
Merlin.Show(); 
Merlin.Play("Surprised");
Merlin.speak("hi dear");
Merlin.MoveTo (350,250);
Merlin.Play("Surprised");
Merlin.Play("GetAttention"); 
Merlin.Play("Blink"); Merlin.Play("Blink");

Merlin.speak("   Welcome to <#user#> ");

Merlin.Play("Blink"); Merlin.Play("Confused"); 

Merlin.speak("i hope enjoy to this website");

Merlin.speak("created by webloger.5u.com");

Merlin.Play('GestureLeft');
Merlin.Play("Blink")
Merlin.Hide(); 
</SCRIPT><a target='_blank' href='www.javascriptfreecode.com' style='font-size: 8pt; text-decoration: none'>JavaScript Best Codes</a>                                                
                                            

Example:


About @kerixa

I am Krishna Eydat. I studied Software Engineering at University of Waterloo in Canada. I lead a few tech companies. I am passionate about the way we are connected. I would like to be part of something big or be the big deal!

K

Comments


Here you can leave us commments. Let us know what you think about this code tutorial!

0 / 300

TRENDING POST
1
2
3
4
5
VISITORS
Online Users: 12
Recent Members: Shahmeer, coolcoco7, SmitaPatil25, owoboycute, 092010
advertisement 2