PDA

View Full Version : magic wand cursor II



etanig
03-15-2010, 01:34 AM
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

stringcugu
03-15-2010, 11:32 AM
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>

etanig
03-15-2010, 11:52 PM
Oh dear...still doesn't work. Could someone please help me on this ?

Thank you for your time.

Emy Taniguchi
United Global artists