♀ Silence Night ♂
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[Release]Mouse trails ^.^ can put at forum

2 posters

Go down

[Release]Mouse trails ^.^ can put at forum Empty [Release]Mouse trails ^.^ can put at forum

Post  kaxdek Fri Aug 14, 2009 9:04 pm

post this code at head
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 onLoad="trail()" into your existing <body> tag.


the script write by ME Very Happy
[Release]Mouse trails ^.^ can put at forum Sss

kaxdek
SilenceNewbie

Posts : 36
Join date : 2009-07-18

Back to top Go down

[Release]Mouse trails ^.^ can put at forum Empty Re: [Release]Mouse trails ^.^ can put at forum

Post  iMsHuDDuP Fri Aug 14, 2009 9:21 pm

iF U know hw to make java,
y dun work with us?
i needa another coder to help~
iMsHuDDuP
iMsHuDDuP
Forum-Co, AGM

Posts : 43
Join date : 2009-07-17
Location : WheRe ThE MaPLe, There aM i!

Back to top Go down

[Release]Mouse trails ^.^ can put at forum Empty Re: [Release]Mouse trails ^.^ can put at forum

Post  kaxdek Sat Aug 15, 2009 8:22 am

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

Back to top Go down

[Release]Mouse trails ^.^ can put at forum Empty Re: [Release]Mouse trails ^.^ can put at forum

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum