How to display scrolling message on status bar using JavaScript?

Discussion in 'JavaScript' started by computerzworld, Apr 28, 2007.

  1. #1
    Hi. I want to display scrolling message on status bar using javascript. How to do this? Please tell me. Thanks in advance.
     
    computerzworld, Apr 28, 2007 IP
  2. Stroh

    Stroh Notable Member

    Messages:
    3,482
    Likes Received:
    292
    Best Answers:
    0
    Trophy Points:
    200
    #2
    <script language="javascript">      		
    var statusmessage="Enter message here to scroll! ";
    	 	function StatusBar() {
                    window.status = statusmessage;
              	statusmessage = statusmessage.substring(1, statusmessage.length) + statusmessage.substring(0, 1)
        setTimeout("StatusBar()", 150
    </script>
    Code (markup):
    Is this what you want?
     
    Stroh, Apr 28, 2007 IP
  3. Logic Ali

    Logic Ali Well-Known Member

    Messages:
    170
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #3
    You should be aware that this practice can be ill-regarded, particularly when done in such a way that it inhibits the intended use of the status bar. For those who must do it, this script endeavours make it more acceptable. It can be configured to stop after displaying the message any number of times, provides the option of multiple random messages and pauses to allow URLs to be displayed:
    Link

    You're welcome in advance.
     
    Logic Ali, Apr 28, 2007 IP