Results 1 to 2 of 2

Thread: complete novice puzzled

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2005
    Posts
    64

    complete novice puzzled

    hi I have just bought an animation to insert into an advert on ebay which turns out to be a bit of java script. the thing i am puzzled about is that ithas various commands that get an animation of merlin the wizard to do various things like wave blink etc but I cannot identify the guts of the program ie how it creates the animation etc. I presume it accesses some code elsewhere but this is puzzling as it was sent to me in an email and when i tried it out it seemed to work without accessing the net can anyone explain how it work As you can guess I have absolutly no knowllege on java sript at all
    here is a extract form ther begining


    <object id="wolfi" height="32" width="32"

    classid="CLSID45FD31B-5C6E-11D1-9EC1-00C04FD7081F">

    ></object>

    <script language="JavaScript" type="text/javascript">

    function LoadLocalAgent(CharID, CharACS) {

    LoadReq = wolfi.Characters.Load(CharID, CharACS);

    return(true);

    }

    function MoveMerlin(x,y)

    {

    var ScreenWidth = window.screen.width;

    var ScreenHeight = window.screen.height;

    if ((ScreenWidth == 0) || (ScreenHeight == 0)) {

    ScreenWidth = 800;

    ScreenHeight = 600;

    }

    var xpos = (parseInt(ScreenWidth / 100 * x) - parseInt(Merlin.Width / 2));;

    var ypos = (parseInt(ScreenHeight / 100 * y) - parseInt(Merlin.Height / 2));

    Merlin.MoveTo(xpos,ypos);

    }

    var MerlinID;

    var MerlinACS;

    wolfi.Connected = true;

    MerlinLoaded = LoadLocalAgent(MerlinID, MerlinACS);

    Merlin = wolfi.Characters.Character(MerlinID);

    MoveMerlin (7,24)

    Merlin.Show();

    Merlin.Play("Surprised");

    Merlin.Play("GetAttention");

    Merlin.Play("GetAttentionContinued");

    Merlin.Play("GetAttentionContinued");

    Merlin.Play("GetAttentionReturn");

    Merlin.Play("Blink");

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: complete novice puzzled

    It looks like an ActiveX control, for the Office assistant. If you don't have office it wouldn't work, I presume.

    What puzzles me is.. you bought it?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width