[Release]Mouse trails ^.^ can put at forum
2 posters
Page 1 of 1
[Release]Mouse trails ^.^ can put at forum
post this code at head
post this in body~
the script write by ME
- Code:
<style type="text/css">
<!--
.mouse
{
position:absolute;
visibility:visible;
top:-50px;
font-size:9px;
font-family:comic sans ms;
color:purple;
}
body
{
width:100%;
overflow-x:hidden;
overflow-y:scroll;
}
-->
</style>
<script>
var x,y
var step=20
var doit=0
var text="SilenceNight "
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>
post this in body~
- Code:
<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()">
the script write by ME
kaxdek- SilenceNewbie
- Posts : 36
Join date : 2009-07-18
Re: [Release]Mouse trails ^.^ can put at forum
iF U know hw to make java,
y dun work with us?
i needa another coder to help~
y dun work with us?
i needa another coder to help~
iMsHuDDuP- Forum-Co, AGM
- Posts : 43
Join date : 2009-07-17
Location : WheRe ThE MaPLe, There aM i!
Re: [Release]Mouse trails ^.^ can put at forum
ForumCo|sHuDDuP wrote:iF U know hw to make java,
y dun work with us?
i needa another coder to help~
u know how to code npc?if u know u can teach me some becoz i also know abit liao.
kaxdek- SilenceNewbie
- Posts : 36
Join date : 2009-07-18
Similar topics
» Koc skill.wz Release~
» Release New CLient!!
» White scroll NPC release~
» New Exchange System Release
» Super Rebirth System Release~
» Release New CLient!!
» White scroll NPC release~
» New Exchange System Release
» Super Rebirth System Release~
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum