Thursday, 15-Nov-2018, 6:18 PM


Main
Sign Up
Login
Wains Organization Welcome Guest | RSS  
Menu

Section categories
Javascripts [45]
Awesome javascripts codes..
HTML scripts [21]
HTML scripts you never seen before...

Information


Please Login Or Register to see all info
Name : Guest
Username : Guest
IP Address : 54.226.209.201
Group : Guests
Browser :

<..........................>
Current date : 15-Nov-2018
Current day : Thursday

Get Updates

New Downloads
[ Games/Torrents ]
[ Games/Torrents ]
[ Softwares ]
demo image         
jQuery Book - 1.2-V1 (0)
[ Games/Torrents ]

Statistics

Total online: 1
Guests: 1
Users: 0

Main » Articles » Javascripts

Text in the Wind after Mouse
Code

<!-- this script got from www.wainsorg.ucoz.com coded by: AlexWains-->
<style type="text/css">
</style>
<script language="JavaScript1.2">

var x,y
var kern=20  
var flag=0
var message="welcome to my weblog"
message=message.split("")
var xpos=new Array()
for (i=0;i<message.length;i++) {
  xpos[i]=-50
  }
var ypos=new Array()
for (i=0;i<message.length;i++) {
  ypos[i]=-50
  }
function handlerMM(e){
  x = (e) ? e.pageX : document.body.scrollLeft+event.clientX
  y = (e) ? e.pageY : document.body.scrollTop+event.clientY
  flag=1
  }
function makebanner() {
  if (flag==1) {
  for (i=message.length-1; i>=1; i--) {
  xpos[i]=xpos[i-1]+kern
  ypos[i]=ypos[i-1]
  }
  xpos[0]=x+kern
  ypos[0]=y
  for (i=0; i<message.length; i++) {
  if (document.getElementById) {
  var thisspan = document.getElementById("span"+i).style
  } else {
  var thisspan = eval((document.layers)?"document.span"+i:"span"+(i)+".style")
  }
  if (thisspan.posLeft) {
  thisspan.posLeft=xpos[i]
  thisspan.posTop=ypos[i]
  }
  if (!thisspan.posLeft) {
  thisspan.left=xpos[i]
  thisspan.top=ypos[i]
  }
  }
  }
  var timer=setTimeout("makebanner()",30)
  }
window.onload=makebanner;
</script>

<script language="JavaScript1.2">
for (i=0;i<message.length;i++) {
document.write("<span id='span"+i+"' class='spanstyle'>")
document.write(message[i])
document.write("</span>")
}
if (document.layers){
document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = handlerMM;

</script>

<style type="text/css">
<!--
.spanstyle {
position:absolute;
visibility:visible;
top:-50px;
font-size:10pt;
font-family:Verdana;
font-weight:italic;
color:808066;
}
BODY {
width:100%;overflow-x:hidden;overflow-y:scroll;
}
-->
</style>
<script language="JavaScript1.2">

var x,y
var kern=20  
var flag=0
var message="welcome to my weblog"
message=message.split("")
var xpos=new Array()
for (i=0;i<message.length;i++) {
  xpos[i]=-50
  }
var ypos=new Array()
for (i=0;i<message.length;i++) {
  ypos[i]=-50
  }
function handlerMM(e){
  x = (e) ? e.pageX : document.body.scrollLeft+event.clientX
  y = (e) ? e.pageY : document.body.scrollTop+event.clientY
  flag=1
  }
function makebanner() {
  if (flag==1) {
  for (i=message.length-1; i>=1; i--) {
  xpos[i]=xpos[i-1]+kern
  ypos[i]=ypos[i-1]
  }
  xpos[0]=x+kern
  ypos[0]=y
  for (i=0; i<message.length; i++) {
  if (document.getElementById) {
  var thisspan = document.getElementById("span"+i).style
  } else {
  var thisspan = eval((document.layers)?"document.span"+i:"span"+(i)+".style")
  }
  if (thisspan.posLeft) {
  thisspan.posLeft=xpos[i]
  thisspan.posTop=ypos[i]
  }
  if (!thisspan.posLeft) {
  thisspan.left=xpos[i]
  thisspan.top=ypos[i]
  }
  }
  }
  var timer=setTimeout("makebanner()",12)
  }
window.onload=makebanner;
</script>

<script language="JavaScript1.2">
for (i=0;i<message.length;i++) {
document.write("<span id='span"+i+"' class='spanstyle'>")
document.write(message[i])
document.write("</span>")
}
if (document.layers){
document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = handlerMM;

</script></body>


<font face="Tahoma"><a target="_blank" href="http://www.wainsorg.ucoz.com"><span style="font-size: 8pt; text-decoration: none">JavaScript Free Code</span></a></font>

Preview:
Is not Available!
Category: Javascripts | Added by: Alex (14-Feb-2013) | Author: Ali Ameen Wains E W
Views: 323 | Tags: Codes, after Mouse, by Ali Ameen Wains, Text in the Wind, javascripts | Rating: 5.0/1
Total comments: 0
Only registered users can add comments.
[ Sign Up | Login ]
Search

Extras

Partners
Add your website

New Scripts
[ HTML scripts ]
[ Javascripts ]
[18-Apr-2013]
Random Link (0)
[ HTML scripts ]
[14-Mar-2013]
Alignments (0)
[ HTML scripts ]
[14-Mar-2013]
Table with Color effect (0)
[ HTML scripts ]
[14-Mar-2013]
Line Divider (1)

New Blogs
[ Custom Script ]
[ How? ]
[ How? ]
[ How? ]

Our poll
How would you rate your knowledge in uCoz?

Copyright Wains Org. © 2018Powered by uCoz / Customization by Ali Ameen Wains / About AdminPrivacy Policy