Search results for 'Scrolling Status Bar'. 1 post(s) found.
- 2007/09/07 Add A Scrolling Status Bar Text To Your Site
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.
<!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>
<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>
Another posts included in "HTML, Javascript"
| Button That Will Show The Page's Source (0) | 2007/09/07 |
| Button That Will Close The Browser Window (0) | 2007/09/07 |
| Icon Coupled Url (0) | 2007/09/07 |
| Add This Page To Favorites (0) | 2007/09/05 |
| Code To Clear Browser History (1) | 2007/09/05 |
| Remove the spaces before begin and after end of text (0) | 2007/09/05 |
| How To Close A Pop-up Window ? (0) | 2007/09/04 |
| Pop Up Window On Top (0) | 2007/09/04 |
Trackback : Cannot send a trackbact to this post.
-
Subject different money making ideas
2010/01/25 08:43
moneyideas
-
Subject different money making ideas
2010/01/28 22:04
moneyideas
-
Subject different money making ideas
2010/01/29 06:29
moneyideas
-
Subject different money making ideas
2010/01/31 16:38
moneyideas

Prev

Rss Feed