+ Reply to Thread
Results 1 to 5 of 5

Thread: Moving text in IE statusbar

  1. #1
    sumitmehta is offline x10 Sophmore sumitmehta is an unknown quantity at this point
    Join Date
    Oct 2005
    Posts
    106

    Moving text in IE statusbar

    Here is a simple tutorial in javascript on moving text in IE statusbar.

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Test Page</title>
    </head>
    
    <body onload="setStatus();">
    
    <script language="javascript" >
    
    var s="I am testing moving text       ";
    
    var l=0;
    var ll=s.length;
    
    function setStatus() {
        
        var ss=s.substr(l,s.length-l);
        var sss=s.substr(0,l);
        
        
        ss=ss + sss;
        
        window.status=ss;
        
        l=l+1;
        
        if(l==s.length) {
            l=0;
        }
        setTimeout("setStatus()",500);
    }
    </script>
    </body>
    
    </html>
    Last edited by sumitmehta; 03-13-2008 at 02:03 AM.

  2. #2
    sunils's Avatar
    sunils is offline x10 Spammer sunils is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Chennai ,India
    Posts
    2,264

    Re: Moving text in IE statusbar

    cool tutorial
    [LEFT][B]Sunil Sankar
    -------------------------------------------------------------------------

  3. #3
    felixjerms is offline x10Hosting Member felixjerms is an unknown quantity at this point
    Join Date
    Jan 2008
    Posts
    2

    Re: Moving text in IE statusbar

    Thanks for the tutorial. It would be a better teaching device if you commented the code to explain what it does, and also if you gave the variables more appropriate names such as 'movingtext' or 'offset'. In fact those would probably be good ideas even in code that's just for your own use.

  4. #4
    sumitmehta is offline x10 Sophmore sumitmehta is an unknown quantity at this point
    Join Date
    Oct 2005
    Posts
    106

    Re: Moving text in IE statusbar

    You are right felixjerms. But this code was not written by me but by my friend. And I understood it even without comments so felt no need to add comments. But thanks anyways. I will try to comment the codings in future.

  5. #5
    Sohail's Avatar
    Sohail is offline x10 Spammer Sohail is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    London, UK
    Posts
    3,052

    Re: Moving text in IE statusbar

    Nice tutorial, this might come in handy for me soon as i am still developing my flash site but i will bookmark this page for future reference.

+ Reply to Thread

Similar Threads

  1. Hybrid's HTML Lessons
    By Hybrid in forum Tutorials
    Replies: 18
    Last Post: 11-28-2009, 02:12 PM
  2. BB Code Guide
    By Jober68 in forum Tutorials
    Replies: 1
    Last Post: 01-10-2008, 05:12 PM
  3. What is Authentication
    By asadislam78 in forum Computers & Technology
    Replies: 1
    Last Post: 12-13-2007, 07:13 AM
  4. Replies: 1
    Last Post: 11-05-2007, 06:07 PM
  5. |PS|*Blur text Tutorial*
    By |Born2Shoot| in forum Tutorials
    Replies: 7
    Last Post: 06-04-2005, 10:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers