• ARCHIVES 
  • » [quote][b]Credits:[/b] Dynamic Drive this code functions your images to trail your cursor... [b]-->[/b] configure this code on your compile js. [spoiler][b]code:[/b] /*******************************

Pages: 1

[quote][b]Credits:[/b] Dynamic Drive this code functions your images to trail your cursor... [b]-->[/b] configure this code on your compile js. [spoiler][b]code:[/b] /*******************************

R-A-M-O-N-help
» FTalker
FTalk Level: zero
148
0
1969-12-31

[quote][b]Credits:[/b] Dynamic Drive this code functions your images to trail your cursor... [b]-->[/b] configure this code on your compile js. [spoiler][b]code:[/b] /*******************************

[quote][b]Credits:[/b] Dynamic Drive this code functions your images to trail your cursor... [b]-->[/b] configure this code on your compile js. [spoiler][b]code:[/b] /****************************************** * 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("[color=red]trail1.gif[/color]",38,35,"[color=red]trail2.gif[/color]",30,31,"[color=red]trail3.gif[/color]",28,26,"[color=red]trail4.gif[/color]",22,21,"[color=red]trail5.gif[/color]",16,16,"[color=red]trail6.gif[/color]",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)[/spoiler] [b]Legend:[/b] [b][color=red]red[/color][/b] - your image url [b]--->[/b] then save it. [url=http://ramonhelp66.fileave.com/test.htm]PREVIEW[/url] [b]!!! Remember:[/b] Dont use this code if you have the script [b]cursor effects (echo text)[/b][/quote]
regiehiozn
» FTalkFreak
FTalk Level: zero
1819
0
1969-12-31

Re: [quote][b]Credits:[/b] Dynamic Drive this code functions your images to trail your cursor... [b]-->[/b] configure this code on your compile js. [spoiler][b]code:[/b] /*******************************

cool trick bro!! :D hehe.. it works best for starry images.. haha.. :o

Last edited by regiehiozn (2008-07-28 02:58:55)

saiEmo
» n00b
FTalk Level: zero
9
0
1969-12-31

Re: [quote][b]Credits:[/b] Dynamic Drive this code functions your images to trail your cursor... [b]-->[/b] configure this code on your compile js. [spoiler][b]code:[/b] /*******************************

R-A-M-O-N-help
» FTalker
FTalk Level: zero
148
0
1969-12-31

Re: [quote][b]Credits:[/b] Dynamic Drive this code functions your images to trail your cursor... [b]-->[/b] configure this code on your compile js. [spoiler][b]code:[/b] /*******************************

oops...sorry...bcuz i search on google...[b]friendstertalk - image trail script[/b] but i didnt see anything...so i post it...very very sorry..
aFgHInZ
» FTalker
FTalk Level: zero
223
0
1969-12-31

Re: [quote][b]Credits:[/b] Dynamic Drive this code functions your images to trail your cursor... [b]-->[/b] configure this code on your compile js. [spoiler][b]code:[/b] /*******************************

nice one.. tnx for share.. :D
  • ARCHIVES 
  • » [quote][b]Credits:[/b] Dynamic Drive this code functions your images to trail your cursor... [b]-->[/b] configure this code on your compile js. [spoiler][b]code:[/b] /*******************************

Pages: 1

Board footer

© 2024 F Talk

Current time is 02:25

[ 10 queries - 0.011 second ]
Privacy Policy