//MOUSE TRAIL TEXT ANYWHERE
//Copyright(C) 2000-2008 - TESQscape - FINE. All intellectual property rights world wide reserved.
//USAGE:
//<body style="width: 100%; overflow-x: hidden; overflow-y: scroll" onload="makesnake();">
//<!--- mouse trail start ---------------------------->
//<script type="text/javascript" language="javascript">mousetrail1(); mousetrail2()</script>
//<!--- mouse trail end ------------------------------->


//<!--- part 1 of 2 mouse trail start ------------>
//<script>

var x,y
var step=20
var flag=0

var xpos=new Array()
var ypos=new Array()

// Your Message goes here. Important: Note the space at the end of the sentence!!!

var message="KOSTER: Komunitas Suzuki Thunder "

function mousetrail1()
{

message=message.split("")
for (z=0;z<=message.length-1;z++)
{
      xpos=new Array()
	xpos[z]=-50
}
for (z=0;z<=message.length-1;z++)
{
      ypos=new Array()
	ypos[z]=-50
}
}

function handlerMM(e)
{
	x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX
	y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY
	flag=1
}

function makesnake()
{

	if (flag==1 && document.all)
	{
    	for (z=message.length-1; z>=1; z--)
    	{
   			xpos[z]=xpos[z-1]+step
			ypos[z]=ypos[z-1]
    	}
		xpos[0]=x+step
		ypos[0]=y
		for (z=0; z<message.length-1; z++)
		{
    		var thisspan = eval("span"+(z)+".style")
    		thisspan.posLeft=xpos[z]
			thisspan.posTop=ypos[z]
    	}
	}
	else if (flag==1 && document.layers) 
	{
    	for (z=message.length-1; z>=1; z--) 
    	{
   			xpos[z]=xpos[z-1]+step
			ypos[z]=ypos[z-1]
    	}
		xpos[0]=x+step
		ypos[0]=y
		for (z=0; z<message.length-1; z++) 
		{
    		var thisspan = eval("document.span"+z)
    		thisspan.left=xpos[z]
			thisspan.top=ypos[z]
    	}
	}
		var timer=setTimeout("makesnake()",30)

}

//      </script>
//<!--- part 1 of 2 mouse trail end ------------->
//<!------------------------------------------------------->
//<!--- part 2 of 2 mouse trail start ------------>
//<script>

function mousetrail2()
{

for (z=0;z<=message.length-1;z++) 
{
    document.write("<span id='span"+z+"' class='spanstyle'>")
    document.write(message[z])
    document.write("</span>")
}

if (document.layers)
{
	document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = handlerMM;

}
//</script>
//<!--- part 2 of 2 mouse trail end ------------->







