Home | Join! | Help | Browse | Forums | NuWorld | NWF | PoPo   
Crazy like a bedbug!
Recently Added
ikimashokie's Reading Room


Cursor Text Trail
by:

This is the text trail script.

----------------------copy after here----------------------------


<cur_text>
<!-- Paste in head -->
<script language="JavaScript">
<!-- Ripple Text by Kurt Grigg - http://www.btinternet.com/~kurt.grigg/javascript

msg="YOUR TEXT HERE...";
font="Comic Sans Ms";
size=2; // 1-7 only!
color="#FFFFFF";
speed=0.5;

//Nothing needs altering past here....................
/*
Script disabled for Netscape 6
due to ugly scrollbar activety
*/
var Netscape6=false;
if (navigator.appName == "Netscape" && parseFloat(navigator.appVersion) >= 5)
Netscape6=true;
if (!Netscape6){
var n4=(document.layers);
var o6=(navigator.appName.indexOf("Opera") != -1)?true:false;
var ie=(document.all);
msg=msg.split('');
n=msg.length;
a=size*10;
ym=0;
xm=0;
props="<font face="+font+" size="+size+" color="+color+">";

if (n4){
for (i=0; i < n; i++)
document.write('<layer name="letters'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+msg[i]+'</font></center></layer>');
}
else{
if (ie){
document.write('<div id="outer" style="position:absolute;top:0px;left:0px">'
+'<div style="position:relative">');
}
for (i=0; i < n; i++)
document.write('<div id="letters'+i+'" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props+msg[i]+'</font></div>');
if (ie){
document.write('</div></div>');
}
}
if (n4){
window.captureEvents(Event.MOUSEMOVE);
function mouse1(e){
ym = e.pageY+20-window.pageYOffset;
xm = e.pageX+20;
}
window.onMouseMove=mouse1;
}
if (ie||o6){
function mouse2(){
ym = (ie)?event.clientY+20:event.clientY+20-window.pageYOffset;
xm = event.clientX+20;
}
document.onmousemove=mouse2;
}
y=new Array();
x=new Array();
Y=new Array();
X=new Array();
for (i=0; i < n; i++){
y[i]=0;
x[i]=0;
Y[i]=0;
X[i]=0;
}
var sy=0;
var temp="";
function assign(){
if (ie) outer.style.top=document.body.scrollTop;
for (i=0; i < n; i++){
if (n4) temp=document.layers['letters'+i];
else temp=document.getElementById("letters"+i).style;
temp.top=y[i]+sy;
temp.left=x[i]+(i*(a/2));
}
}
function ripple(){
sy=(ie)?0:window.pageYOffset;
y[0]=Math.round(Y[0]+=((ym)-Y[0])*speed);
x[0]=Math.round(X[0]+=((xm)-X[0])*speed);
for (var i=1; i < n; i++){
y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed);
x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed);
}
assign();
setTimeout('ripple()',10);
}
window.onload=ripple;
}
// -->
</script></cur_text>


ikimashokie's Weblog Site • NuTang.com

NuTang is the first web site to implement PPGY Technology. This page was generated in 0.114seconds.

  Send to a friend on AIM | Set as Homepage | Bookmark Home | NuTang Collage | Terms of Service & Privacy Policy | Link to Us | Monthly Top 10s
All content Copyright 2003-2047 NuTang.com and respective members. Contact us at NuTang[AT]gmail.com.