WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Add a scrolling status bar text to your site. You can have multiple lines of text. The text can appear in the given order or in random. A very good script to make announcements to your visitors.
Categories : Java Script, HTML Click here to Update Your Picture
Bobin R
Date : Jan 27th 2007
Grade : 1 of 5 (graded 2 times)
Viewed : 6655
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Bobin R
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

<!doctype html public "-//w3c//dtd html 4.01 transitional//en">
<html>
<head>
<title>Scrolling Statusbar Text</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<script type="text/javascript">
<!--
/*
Script for scrolling the statusbar text
*/

/*** Configurable Section ***/
// Speed of scrolling
var SS_Delay = 80;
// Position to start scrolling
var SS_SPos = 100;
// Whether or not to display messages in random order
var SS_Random = false;
// Messages to scroll
var SS_ArMsg = new Array(
                    'This is line 1',
                    'This is line 2',
                    'This is line 3',
                    'This is line 4'
                );
/*** No need to edit below this ***/
var SS_Timer = null;
var SS_Pos = -1;
var SS_Msg = "";
var SS_MsgId = -1;
var SS_MsgLen = SS_ArMsg.length;

// Start Scrolling
function SS_Start(){
    if(SS_Timer)clearTimeout(SS_Timer);
    SS_Scroll();
}
// Function for performing scroll
function SS_Scroll(){
    if(SS_Pos <= SS_Msg.length){
        self.status = SS_Msg.substring(SS_Pos, SS_Pos + SS_SPos);
    }else{
        SS_NextMsg();
        SS_Pos = -1;
    }
    SS_Pos++;
    SS_Timer = self.setTimeout("SS_Scroll()", SS_Delay);
}
// Get the Next Message for scrolling
function SS_NextMsg(){
    if(SS_Random){
        SS_MsgId = parseInt(Math.random() * SS_MsgLen);
    }else{
        SS_MsgId = (++SS_MsgId >= SS_MsgLen) ? 0 : SS_MsgId;
    }
    SS_Msg = SS_ArMsg[SS_MsgId];
    // Prepend the string with space to match the
    // specified starting position
    for(var i = 0; i < SS_SPos; i++){
        SS_Msg = " " + SS_Msg;
    }
}

// Start Scrolling
SS_Start();
//-->
</script>
</head>

<body>

</body>
</html>




Check if Javascript is Enabled or Disabled - Works in all Browsers
Categories : Java Script, HTML, Web Browsers
Javascript linked dropdowns
Categories : Java Script, HTML, Classes and Objects
Javascript animated menu items
Categories : DHTML, CSS, Java Script, HTML
How to create <SELECT> menues that change on the fly according to other <SELECT> menues on the page?
Categories : Java Script, HTML
Bouncing Marquee at Status Bar
Categories : Java Script, HTML, Browsers
Page Loading Message shown during the time your site's page is being loaded.
Categories : HTML, CSS, Java Script
Table editable dynamic form with edit + selection (select / option) + checkbox.
Categories : Java Script, DHTML, User Interface, CSS, HTML
Prevent Right Mouse steal your graphics
Categories : HTML, Java Script, Security
Javascript Background Scroller
Categories : Java Script, CSS, HTML
Clock at Status Bar
Categories : Java Script, HTML, Date Time
complete simply working javascript password generator file. Use letter, vowels, consonants (uppercase and lowercase) arrays to create a really random and secure password. improved security using time functions to initialize random number generator.
Categories : Java Script, HTML, Security, Authentication, Strings
Builds JavaScript that updates the contents of one selector based on another.
Categories : HTML, Java Script, PHP, Complete Programs, General
Mordern Peroidic Table - Science
Categories : Java Script, HTML, Charts and Graphs
Javascript Color Picker
Categories : Java Script, Colors, HTML
Unobtrusive javascript for maintaining scrollable layer state
Categories : DHTML, Java Script, HTML