like this
^ a s i a n 4 l i f e
and it follows the cursor wherever u move it
thx
How do u get myspace cursors with words kinda tagging along with the cursors?
the person above is right. BUT myspace doesn't allow javascript anymore, so you can not use the code he gave you. you can try, but it won't work.
How do u get myspace cursors with words kinda tagging along with the cursors?
You need to post some Javascrip codes within the template of the myspace page !
Here's some code you can start with
%26lt;style%26gt;
.spanstyle {
position:absolute;
visibility:visible;
top:-50px;
font-size:10pt;
font-family:Verdana;
font-weight:bold;
color:black;
}
%26lt;/style%26gt;
%26lt;script%26gt;
/*
Cursor Trailor Text- By Peter Gehrig (http://www.24fun.ch/)
Permission given to Dynamicdrive.com to feature script in it's archive.
For full source code, installation instructions, and 1000's more DHTML scripts,
visit http://dynamicdrive.com
*/
var x,y
var step=20
var flag=0
// Your snappy message. Important: the space at the end of the sentence!!!
var message="DYNAMIC DRIVE! "
message=message.split("")
var xpos=new Array()
for (i=0;i%26lt;=message.length-1;i++) {
xpos[i]=-50
}
var ypos=new Array()
for (i=0;i%26lt;=message.length-1;i++) {
ypos[i]=-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 %26amp;%26amp; document.all) {
for (i=message.length-1; i%26gt;=1; i--) {
xpos[i]=xpos[i-1]+step
ypos[i]=ypos[i-1]
}
xpos[0]=x+step
ypos[0]=y
for (i=0; i%26lt;message.length-1; i++) {
var thisspan = eval("span"+(i)+".style")
thisspan.posLeft=xpos[i]
thisspan.posTop=ypos[i]
}
}
else if (flag==1 %26amp;%26amp; document.layers) {
for (i=message.length-1; i%26gt;=1; i--) {
xpos[i]=xpos[i-1]+step
ypos[i]=ypos[i-1]
}
xpos[0]=x+step
ypos[0]=y
for (i=0; i%26lt;message.length-1; i++) {
var thisspan = eval("document.span"+i)
thisspan.left=xpos[i]
thisspan.top=ypos[i]
}
}
var timer=setTimeout("makesnake()",30)
}
%26lt;/script%26gt;
No comments:
Post a Comment