FREE CODE Monday, 12.18.2017, 4:16 AM
Main | Registration | Login Welcome Guest | RSS
[ New messages · Members · Forum rules · Search · RSS ]
۞Forum Statistics۞
NEW TOPPIV
HOT TOPPIC
TOP MEMBERS
NEW MEMBERS
  • check code here Have(0) reviews faxuhi
  • Keywords meta Tags Have(0) reviews faxuhi
  • text box Have(0) reviews faxuhi
  • Page description Have(0) reviews faxuhi
  • marquee Have(0) reviews faxuhi
  • print your page Have(0) reviews faxuhi
  • choose your country Have(0) reviews faxuhi
  • check all - unchek all Have(0) reviews faxuhi
  • shadow text Have(0) reviews faxuhi
  • Beautiful text two Have(0) reviews faxuhi
  • Nice menu with java script <p1> Have(2) reviews faxuhi
  • Mouse Clock Have(1) reviews faxuhi
  • HTML table placeholder Have(0) reviews faxuhi
  • Html graphic bullets Have(0) reviews faxuhi
  • Different times of the world by the users choice from a list Have(0) reviews faxuhi
  • Mouseover Alert HTML Script Have(0) reviews faxuhi
  • Redirect to another page and link automatically to other pg Have(0) reviews faxuhi
  • Combo box link box to browse your website easily Have(0) reviews faxuhi
  • Message to user by clicking a button Have(0) reviews faxuhi
  • Background changing color effect Have(0) reviews faxuhi
  • faxuhi[189]Bài
  • mcsnagger0022[0]Bài
  • thinknoodles[0]Bài
  • karaganis888[0]Bài
  • faxuhi [189]Bài
  • mcsnagger0022 [0]Bài
  • thinknoodles [0]Bài
  • karaganis888 [0]Bài
  • Page 1 of 11
    Forum » Web Javascript » Text in Wind After the Mouse » Text in Wind After the Mouse
    Text in Wind After the Mouse
    faxuhiDate: Monday, 07.25.2011, 3:47 PM | Message # 1
    Colonel
    Group: Administrators
    Messages: 189
    Reputation: 0
    Status: Offline
    Code
    <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>
    </html>
     
    Forum » Web Javascript » Text in Wind After the Mouse » Text in Wind After the Mouse
    Page 1 of 11
    Search:

    Copyright MyCorp © 2017 Website builderuCoz