BBGameZone.net PBBG Network | BuildingBrowserGames | Top-PBBG
March 11, 2010, 08:58:47 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to the Browser-Base Game Zone forums!
 
  Home   Forum   Help Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: [Javascript] Script for the status bar while browsing your website  (Read 630 times)
Sava
Level 13
*

Reputation: -12
Offline Offline

Posts: 101


It's just me


View Profile
« on: September 29, 2006, 05:39:04 PM »

Code:
<script>
  <!-- Hide from old browsers

  // All you have to do is put another text in the variable message.
  // Don't forget to break all lines with a ^
  // When you do not place a ^ at the end of all the message, the
  // message will not repeat

  message     = "This is another example of a simple typewriter example^" +
                "You can enter an unlimited number of lines here^" +
                "Please, take a look at the code for a more detailed description^" +
                "Created by Michiel Steendam^" +
                "This typewriter will repeat now ...^" +
                "^"
  scrollSpeed = 25
  lineDelay   = 1500

  // Do not change the text below //

  txt         = ""

  function scrollText(pos) {
    if (message.charAt(pos) != '^') {
      txt    = txt + message.charAt(pos)
      status = txt
      pauze  = scrollSpeed
    }
    else {
      pauze = lineDelay
      txt   = ""
      if (pos == message.length-1) pos = -1
    }
    pos++
    setTimeout("scrollText('"+pos+"')",pauze)
  }

  // Unhide -->
scrollText(0)
  </script>
Logged

dvd871
Level 21
*

Reputation: 7
Offline Offline

Posts: 238



View Profile WWW
« Reply #1 on: October 12, 2006, 05:16:09 PM »

Todays websurfers are a little smarter than they used to be.  Doing things like hidding the status bar and inserting messages in to the status bar will make them feel like they are being deceived. 
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
SimplePortal 2.2 © 2008-2009
Valid XHTML 1.0! Valid CSS!