
Here are some Sanrio Mouse trails & the
coding needed for your webpage.
You will have to save the Sanrio image you want to use & then upload it to the
server for your website. The mouse trails script will change the size of the images
here. The mouse trails size on my site will be the same size on your site.
|
|
|
|
|
|
|
|
|
|
|
|
Instructions For putting Mouse Trail on your site:
1.Save the image you want on yor computer
2. Copy & paste Mouse Trails coding onto your webpage just below <Body> tag (
pages if you choose to).
3. Change Images.gif in the coding for the name of the image you want to use.
4. Upload Sanrio image for the Mouse trail & updated webpage to your server.
Mouse Trails Coding:
<script>
/*
Cross browser cursor trailer script
By Brian Caputo (bcaputo@icdc.com)
Visit Dynamic Depot @ www.icdc.com/~bcaputo
*/
B=document.all;C=document.layers;cC=new Array();
T1=new Array("Images.gif",10,10, "Images.gif",20,20, "Images.gif",30,30, "Images.gif",40,40, "Images.gif",50,50);
nos=parseInt(T1.length/3);
rate=100;
renderrate=500;
for (i=0;i<nos;i++)
createCell('CUR'+i,i*10,i*10,T1[i*3+1],T1[i*3+2],'','<img src="'+T1[i*3]+'"
width='+T1[(i*3+1)]+' height='+T1[(i*3+2)]+' border=0>')
function cycle(){for
(i=0;i<(nos-1);i++){moveCell('CUR'+i,getXpos('CUR'+(i+1)),getYpos('CUR'+(i+1)))}}
function newPos(e){if
(window.MMTime){window.clearTimeout(window.MMTime);window.MMTime=null}for
(i=0;i<(nos-1);i++)showCell('CUR'+(i));showCell('CUR'+(nos-1));moveCell('CUR'+(nos-1),((B)?event.clientX+document.body.scrollLeft:e.pageX)+2,((B)?event.clientY+document.body.scrollTop:e.pageY)+2);window.MMTime=window.setTimeout('cycle2()',renderrate)}
//Here is the line I changed so both IE & NS move it over 2 pixels off the pointers
tip thus allowing linkage!
if(document.layers)document.captureEvents(Event.MOUSEMOVE);
if (B)document.body.onscroll=newPos;
document.onmousemove=newPos;
window.MTIRQ=setInterval('cycle()',rate);
function createCell(N, Xp, Yp,W,H,A,Ht,BG,O,S){with(document){(C)?write("<layer
name='"+N+"' left="+Xp+" top="+Yp+" width="+W+"
height="+H ):write("<div id='"+N+"' style='position:absolute;
left:"+Xp+"; top:"+Yp+"; width:"+W+"; height:"+H);if
(BG){X=(C)?" BGColor=":";
background-color:";write(X+BG)}if(S)write((C)?" style='
"+S+"'":";
"+S+"'");if(B&&!S)write("'");write((A)?"
"+A+">":">");write(Ht)}if(!O)closeCell();cC[cC.length]=N;XX=eval("window."+N+"=getCell(N)");if(B){XX.moveTo=moveTo;XX.moveBy=moveBy}
XX.innerHTML=Ht;XX.ID=N;eval(getCell(N).refresh=refresh)};
function moveCell(N,Xp,Yp){D=getCell(N);D.left=Xp;D.top=Yp};
function getYpos(N){return (parseInt(getCell(N).top))};
function getXpos(N){return (parseInt(getCell(N).left))};
function
closeCell(){document.write((B)?"</div>":"</layer>")};
function getCell(N){D=(C)?C[N]:B[N].style;if(D==null&&C){rr=C.length;for
(i=0;i<rr;i++){D=C[i].document.layers;if(D)D=D[N];if(D)return D}}return D}
function refresh(){if(B){document.all[this.ID].innerHTML=this.innerHTML}}
function getObject2(N){e=(C)?C[N]:B[N];if(e==null&&C){rr=C.length;for
(i=0;i<rr;i++){e=C[i].document.layers;if(e)e=e[N];if(e) return e;}}return e}
function showCell(N){getCell(N).visibility=(B)?"visible":"show"}
function hideCell(N){getCell(N).visibility=(B)?"hidden":"hide"}
function cycle2(){for (i=0;i<nos;i++)hideCell('CUR'+i)}
</script>
![]()
This site is an unofficial fan site of Sanrio - Hello Kitty, My Melody,
Little Twin Stars, Pochacco, Keroppi and Badtzmaru.
Copyrights of Hello Kitty, My Melody, Little Twin Stars, Pochacco, Keroppi,
and Badtzmaru belong to Sanrio.
All images in this site should be for personal use only .
Go To:
[ Main Page ] [ ICQ Skins ][winAMP Skins][Downloads]