Results 1 to 3 of 3

Thread: magic wand cursor II

  1. #1
    Join Date
    Mar 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default magic wand cursor II

    1) Script Title: magic wand cursor II

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex13/star3.htm

    3) Describe problem: I'm trying to insert this script inside site. First tried inserting into html body of script; I could not paste the script. Then I tried placing the script on the page itself, whilst inside the site. I've used this effect in the past & have never had any problem...Could someone please help me ?

    Emy Taniguchi
    Technical Facilitation
    United Global Artists
    www.u-g-a.com

  2. #2
    Join Date
    Aug 2009
    Posts
    92
    Thanks
    0
    Thanked 9 Times in 9 Posts

    Default

    try something like this

    </head>
    <body bgcolor = "#ffffff" text="#000000" link="#ee6ee6" alink="#f5cac7" vlink= "#666666">
    <script>
    <!--
    var ns = (document.layers) ? true:false;
    var ie = (document.all) ? true:false;
    var Ver4 = (!document.all&&document.getElementbyid) ? true:false;
    var a = new Array()
    a[0] = new followingLAYER('flwLay0',10,30,100,'<img src= 0.gif>-0')
    a[1] = new followingLAYER('flwLay1',10,30,200,'<img src= 0.gif>-1')
    a[2] = new followingLAYER('flwLay2',10,30,300,'<img src= 0.gif>-2')
    a[3] = new followingLAYER('flwLay3',10,30,400,'<img src= 0.gif>-3')
    a[4] = new followingLAYER('flwLay4',10,30,500,'<img src= 0.gif>-4')
    document.onmousemove = dofollow
    if(document.layers)document.captureEvents(Event.MOUSEMOVE)
    if(window.opera){
    op_dmydoc ='<div id="dmy" style="position:absolute;z-index:0'
    +'left:100%;top:100%"></div> '
    document.write(op_dmydoc)
    }
    function dofollow(e){
    for(var i=0 ; i < a.length ; i++ )
    setTimeout("a["+i+"].moveLAYER(a["+i+"].layName,"
    +(getMouseX(e)+a[i].ofx)+","+(getMouseY(e)+a[i].ofy)+")"
    ,a[i].delay)
    }
    function followingLAYER(layName,ofx,ofy,delay,html){
    this.layName=layName
    this.ofx= ofx
    this.ofy= ofy
    this.delay= delay
    if(ns)
    this.div='<layer name="'+layName+'" left="-100" top="-100">\n'
    + html+'</layer>\n'
    else
    this.div='<div id="'+layName+'"\n'
    +'style="position:absolute;left:-100px;top:-100px">\n'
    + html + '</div>\n'
    document.write(this.div)
    }
    followingLAYER.prototype.moveLAYER = moveLAYER
    function moveLAYER(layName,x,y){
    if(ns)
    {document.layers[layName].moveTo(x,y)}
    else
    {
    document.getElementById(layName).style.left = x
    document.getElementById(layName).style.top = y
    }}
    function getMouseX(e){
    if(ns)
    {return e.pageX}
    else
    {return document.body.scrollLeft+eval(ie&&event.clientX||e.clientX)}}
    function getMouseY(e){
    if(ns)
    {return e.pageY}
    else
    {return document.body.scrollTop+eval(ie&&event.clientY||e.clientY)}
    }
    //-->
    </script>
    </body>
    </html>
    Last edited by jscheuer1; 03-15-2010 at 12:57 PM. Reason: link to unrelated site

  3. #3
    Join Date
    Mar 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oh dear...still doesn't work. Could someone please help me on this ?

    Thank you for your time.

    Emy Taniguchi
    United Global artists

Bookmarks

Posting Permissions

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