Yeni4
<p><script>
/******************************************
* Cross browser cursor trailer script- By Brian Caputo (bcaputo@icdc.com)
* Visit Dynamic Drive (http://www.dynamicdrive.com/) for full source code
* Modified Dec 31st, 02' by DD. This notice must stay intact for use
******************************************/
A=document.getElementById
B=document.all;
C=document.layers;
T1=new Array("trail1.gif",38,35,"trail2.gif",30,31,"trail3.gif",28,26,"trail4.gif",22,21,"trail5.gif",16,16,"trail6.gif",10,10)
var offsetx=15 //x offset of trail from mouse pointer
var offsety=10 //y offset of trail from mouse pointer
nos=parseInt(T1.length/3)
rate=50
ie5fix1=0;
ie5fix2=0;
rightedge=B? document.body.clientWidth-T1[1] : window.innerWidth-T1[1]-20
bottomedge=B? document.body.scrollTop+document.body.clientHeight-T1[2] : window.pageYOffset+window.innerHeight-T1[2]
for (i=0;i<nos;i++){
createContainer("CUR"+i,i*10,i*10,i*3+1,i*3+2,"","<img src='"+T1[i*3]+"' width="+T1[(i*3+1)]+" height="+T1[(i*3+2)]+" border=0>")
}
function createContainer(N,Xp,Yp,W,H,At,HT,Op,St){
with (document){
write((!A && !B) ? "<layer id='"+N+"' left="+Xp+" top="+Yp+" width="+W+" height="+H : "<div id='"+N+"'"+" style='position:absolute;left:"+Xp+"; top:"+Yp+"; width:"+W+"; height:"+H+"; ");
if(St){
if (C)
write(" style='");
write(St+";' ")
}
else write((A || B)?"'":"");
write((At)? At+">" : ">");
write((HT) ? HT : "");
if (!Op)
closeContainer(N)
}
}
function closeContainer(){
document.write((A || B)?"</div>":"</layer>")
}
function getXpos(N){
if (A)
return parseInt(document.getElementById(N).style.left)
else if (B)
return parseInt(B[N].style.left)
else
return C[N].left
}
function getYpos(N){
if (A)
return parseInt(document.getElementById(N).style.top)
else if (B)
return parseInt(B[N].style.top)
else
return C[N].top
}
function moveContainer(N,DX,DY){
c=(A)? document.getElementById(N).style : (B)? B[N].style : (C)? C[N] : "";
if (!B){
rightedge=window.innerWidth-T1[1]-20
bottomedge=window.pageYOffset+window.innerHeight-T1[2]
}
c.left=Math.min(rightedge, DX+offsetx);
c.top=Math.min(bottomedge, DY+offsety);
}
function cycle(){
//if (IE5)
if (document.all&&window.print){
ie5fix1=document.body.scrollLeft;
ie5fix2=document.body.scrollTop;
}
for (i=0;i<(nos-1);i++){
moveContainer("CUR"+i,getXpos("CUR"+(i+1)),getYpos("CUR"+(i+1)))
}
}
function newPos(e){
moveContainer("CUR"+(nos-1),(B)?event.clientX+ie5fix1:e.pageX+2,(B)?event.clientY+ie5fix2:e.pageY+2)
}
function getedgesIE(){
rightedge=document.body.clientWidth-T1[1]
bottomedge=document.body.scrollHeight-T1[2]
}
if (B){
window.onload=getedgesIE
window.onresize=getedgesIE
}
if(document.layers)
document.captureEvents(Event.MOUSEMOVE)
document.onmousemove=newPos
setInterval("cycle()",rate)
</script><br />
<br />
<script></p>
<p>/******************************************<br />
* Cross browser cursor trailer script- By Brian Caputo (<a href="mailto:bcaputo@icdc.com">bcaputo@icdc.com</a>)<br />
* Visit Dynamic Drive (<a href="http://www.dynamicdrive.com/">http://www.dynamicdrive.com/</a>) for full source code<br />
* Modified Dec 31st, 02' by DD. This notice must stay intact for use<br />
******************************************/</p>
<p>A=document.getElementById<br />
B=document.all;<br />
C=document.layers;<br />
T1=new Array("trail1.gif",38,35,"trail2.gif",30,31,"trail3.gif",28,26,"trail4.gif",22,21,"trail5.gif",16,16,"trail6.gif",10,10)</p>
<p>var offsetx=15 //x offset of trail from mouse pointer<br />
var offsety=10 //y offset of trail from mouse pointer</p>
<p>nos=parseInt(T1.length/3)<br />
rate=50<br />
ie5fix1=0;<br />
ie5fix2=0;<br />
rightedge=B? document.body.clientWidth-T1[1] : window.innerWidth-T1[1]-20<br />
bottomedge=B? document.body.scrollTop+document.body.clientHeight-T1[2] : window.pageYOffset+window.innerHeight-T1[2]</p>
<p>for (i=0;i<nos;i++){<br />
createContainer("CUR"+i,i*10,i*10,i*3+1,i*3+2,"","<img src='"+T1[i*3]+"' width="+T1[(i*3+1)]+" height="+T1[(i*3+2)]+" border=0>")<br />
}</p>
<p>function createContainer(N,Xp,Yp,W,H,At,HT,Op,St){<br />
with (document){<br />
write((!A && !B) ? "<layer id='"+N+"' left="+Xp+" top="+Yp+" width="+W+" height="+H : "<div id='"+N+"'"+" style='position:absolute;left:"+Xp+"; top:"+Yp+"; width:"+W+"; height:"+H+"; ");<br />
if(St){<br />
if (C)<br />
write(" style='");<br />
write(St+";' ")<br />
}<br />
else write((A || B)?"'":"");<br />
write((At)? At+">" : ">");<br />
write((HT) ? HT : "");<br />
if (!Op)<br />
closeContainer(N)<br />
}<br />
}</p>
<p>function closeContainer(){<br />
document.write((A || B)?"</div>":"</layer>")<br />
}</p>
<p>function getXpos(N){<br />
if (A)<br />
return parseInt(document.getElementById(N).style.left)<br />
else if (B)<br />
return parseInt(B[N].style.left)<br />
else<br />
return C[N].left<br />
}</p>
<p>function getYpos(N){<br />
if (A)<br />
return parseInt(document.getElementById(N).style.top)<br />
else if (B)<br />
return parseInt(B[N].style.top)<br />
else<br />
return C[N].top<br />
}</p>
<p>function moveContainer(N,DX,DY){<br />
c=(A)? document.getElementById(N).style : (B)? B[N].style : (C)? C[N] : "";<br />
if (!B){<br />
rightedge=window.innerWidth-T1[1]-20<br />
bottomedge=window.pageYOffset+window.innerHeight-T1[2]<br />
}<br />
c.left=Math.min(rightedge, DX+offsetx);<br />
c.top=Math.min(bottomedge, DY+offsety);<br />
}<br />
function cycle(){<br />
//if (IE5) <br />
if (document.all&&window.print){<br />
ie5fix1=document.body.scrollLeft;<br />
ie5fix2=document.body.scrollTop;<br />
}<br />
for (i=0;i<(nos-1);i++){<br />
moveContainer("CUR"+i,getXpos("CUR"+(i+1)),getYpos("CUR"+(i+1)))<br />
}<br />
}</p>
<p>function newPos(e){<br />
moveContainer("CUR"+(nos-1),(B)?event.clientX+ie5fix1:e.pageX+2,(B)?event.clientY+ie5fix2:e.pageY+2)<br />
}</p>
<p>function getedgesIE(){<br />
rightedge=document.body.clientWidth-T1[1]<br />
bottomedge=document.body.scrollHeight-T1[2]<br />
}</p>
<p>if (B){<br />
window.onload=getedgesIE<br />
window.onresize=getedgesIE<br />
}</p>
<p>if(document.layers)<br />
document.captureEvents(Event.MOUSEMOVE)<br />
document.onmousemove=newPos<br />
setInterval("cycle()",rate)<br />
</script></p>