Mouse Pointer with name TaiL

Log-in or register.
No older entries »« No newer entries

Mouse Pointer with name TaiL

Published by on December 4th 2014.

Hi everyone there, does anyone can help me convert this code so that i can use this in my computer. This code usually for webpage Mouse Cursor, but i want to attach the script to my mouse pointer so that i can use the mouse pointer not only on the webpage it is coded but as a regular mouse pointer for my PC, in short i want to attach the script in my mouse Pointer using the Application RealWorld Cursor Editor since it provide a custom Java script animation code,

<html>
<head>
<title>Me</Title>
<style type="text/css">
<!--
.mouse
{
position:absolute;
visibility:visible;
top:-50px;
font-size:12px;
font-family:arial;
color:black;
}
body
{
width:100%;
overflow-x:hidden;
overflow-y:scroll;
}
-->
</style>
<script>
var x,y
var step=20
var doit=0
var text="Dan Joshua...... "
text=text.split("")

var xpos=new Array()
for (i=0;i<=text.length-1;i++) {
xpos[i]=-50
}

var ypos=new Array()
for (i=0;i<=text.length-1;i++) {
ypos[i]=-50
}
function anddo(e){
x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX
y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY
doit=1
}
function trail() {
if (doit==1 && document.all) {

   	for (i=text.length-1; i>=1; i--) {
  			xpos[i]=xpos[i-1]+step

ypos[i]=ypos[i-1]

   	}

xpos[0]=x+step
ypos[0]=y

for (i=0; i<text.length-1; i++) {

   		var place = eval("span"+(i)+".style")
   		place.posLeft=xpos[i]

place.posTop=ypos[i]

   	}

}

else if (doit==1 && document.layers) {

   	for (i=text.length-1; i>=1; i--) {
  			xpos[i]=xpos[i-1]+step

ypos[i]=ypos[i-1]

   	}

xpos[0]=x+step
ypos[0]=y

for (i=0; i<text.length-1; i++) {

   		var place = eval("document.span"+i)
   		place.left=xpos[i]

place.top=ypos[i]

   	}

}
var timer=setTimeout("trail()",30)
}
</script>
</head>

<body>
<script>
<!-- Beginning of JavaScript -
for (i=0;i<=text.length-1;i++) {

   document.write("<span id='span"+i+"' class='mouse'>")

document.write(text[i])

   document.write("</span>")

}
if (document.layers){
document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = anddo;
// - End of JavaScript - -->
</script>
<Body onLoad="trail()">
</body>
</html>

Recent comments

user icon Anonymous on August 2nd 2016

bruh :-o :-( :-D :-) ;-) |-) 8-) :-o :-( :-D :-) ;-)

thats crap ;-) :-) :-D :-( :-o 8-) |-)

user icon Anonymous
Vista & Win 7 icons
I wish there were...
What about ICL files?
Select background