lambzdaughter
07-17-2003, 05:12 AM
um. i've been trying to do the new trailing pictures cursor on mai xanga but it doesn't seem to be working. can someone please help me.
|
View Full Version : cursor lambzdaughter 07-17-2003, 05:12 AM um. i've been trying to do the new trailing pictures cursor on mai xanga but it doesn't seem to be working. can someone please help me. lefty 07-18-2003, 01:50 AM Mind posting your code? vimota 07-18-2003, 07:22 PM Try http://www.lissaexplains.com/javascript.shtml#cursortext lambzdaughter 07-18-2003, 11:39 PM heres my style sheet: <style type="text/css"> A:link { text-decoration: none; color:#FF6600; } A:visited { text-decoration: none; color:#FF9900; } A:active { text-decoration: none; color:#FF3333; } A:hover { text-decoration: underline overline; color:#FFCC66; cursor: s-resize;} h1 {font-family: verdana; } p {font-family: verdana; } body { font-family: verdana; scrollbar-face-color : #FFFFFF; scrollbar-highlight-color : #FFFFFF; scrollbar-3dlight-color : #FFFFFF; scrollbar-shadow-color : #FFFFFF; scrollbar-darkshadow-color : #FFFFFF; scrollbar-track-color : #FFFFFF; scrollbar-arrow-color : #FF0000;} td { font-family: verdana; } input, textarea { font-family: verdana; } </style> <img src="http://www.boomspeed.com/je5u5freak/mishxx2.jpg" align="center"> but i don't know where to post the code: <script> /* Cross browser cursor trailer script By Brian Caputo (bcaputo@icdc.com) Written permission granted to lissaexplains.com to distribute the script for personal use. (DO NOT REMOVE THIS) */ 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) nos=parseInt(T1.length/3) rate=50 ie5fix1=0; ie5fix2=0; 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((!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((B)?"'":""); write((At)? At+">" : ">"); write((HT) ? HT : ""); if (!Op) closeContainer(N) } } function closeContainer(){ document.write((B)?"</div>":"</layer>") } function getXpos(N){ return (B) ? parseInt(B[N].style.left) : C[N].left } function getYpos(N){ return (B) ? parseInt(B[N].style.top) : C[N].top } function moveContainer(N,DX,DY){ c=(B) ? B[N].style :C[N];c.left=DX;c.top=DY } 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.c lientY+ie5fix2:e.pageY+2 ) } if(document.layers) document.captureEvents(Event.MOUSEMOVE) document.onmousemove=newPos setInterval("cycle()",rate) </script> |