posted on December 19, 2000 08:06:15 PM new
Anyone have a site I can check out? I think I want one on my homepage, but I have no idea how to do one, so if anyone has a site that is in laymans terms on HOW to do it, then I would be a happy camper. But first, I want to find a site that has some I can check out.
posted on December 19, 2000 09:54:39 PM new
Here, try this JavaScript. It reads: 7 DAY FREE MEMBERSHIPS! and it snakes around wherever your cursor goes. Just replace the message text and inseart it into your HTML page:
<script>
var x,y
var step=10
var flag=0
var message="7 DAY FREE MEMBERSHIPS!"
message=message.split("")
var xpos=new Array()
for (i=0;i<=message.length-1;i++) {
xpos[i]=-50
}
var ypos=new Array()
for (i=0;i<=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 && document.all) {
for (i=message.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<message.length-1; i++) {
var thisspan = eval("span"+(i)+".style"
thisspan.posLeft=xpos[i]
thisspan.posTop=ypos[i]
}
}
else if (flag==1 && document.layers) {
for (i=message.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<message.length-1; i++) {
var thisspan = eval("document.span"+i)
thisspan.left=xpos[i]
thisspan.top=ypos[i]
}
}
var timer=setTimeout("makesnake()",10)
}
</script>
edited to add: for some reason, the close bracket ) is creating a smilie face?
[ edited by Borillar on Dec 19, 2000 09:58 PM ]
[ edited by Borillar on Dec 19, 2000 09:59 PM ]
I use the "elastic tail cursor script" on my auction pages. (I'm "thetigerlady" on eBay so you can check it out) I usually have a paw background with little paws following the mouse, but I decided I wanted to see some snow for the season!
They have a few different mouse scripts, and LOTS of other cool stuff you can use on your website to spiff it up, and all you have to do is copy and paste the code!
Any more questions about it, you can get my e-mail from eBay and "e" me!