Add A Scrolling Status Bar Text To Your Site

CK CK 3788 
Created at
Updated at  
406 0 0

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>

 

Tags HTML HTML source Javascript Scrolling Status Bar Facebook X
Comments 0
Similar posts
  1. Button That Will Show The Page's Source
    385
  2. Button That Will Close The Browser Window
    348
  3. Icon Coupled Url
    425
  4. Book Mark This Site
    403
  5. Document Fader
    346
  6. Tooltip
    407
  7. Add Message On Mouse Traling
    2,543
  8. Number Of Vists
    507
  9. How to calculate page loading time ?
    358
  10. Move window
    545
  11. Add This Page To Favorites
    397
  12. Code To Clear Browser History
    374
  13. Remove the spaces before begin and after end of text
    334
  14. How To Close A Pop-up Window ?
    440
  15. Pop Up Window On Top
    514
  16. How to display message on browser status bar ?
    474
  17. New Window
    602
  18. Color Table
    361
  19. Cursor Changer
    382
  20. Dual Scroller
    329
  21. Enlarge Image
    511
  22. Confirm The Link Clicked
    628
  23. Select And Deselect All Checkboxes By Javascript
    630
  24. Javascript Mouse Event Handler Example
    403
  25. Getting WebSearchers On Your Site
    372
  26. Hiding HTML on the browser
    457
  27. How to get date time in Javascript ?
    497
  28. Javascript based Alarm Clock
    659
  29. Javascript implemented Calendar
    420
  30. Basic Date Display
    508
  1. Javascript based Browser Sniffing
    430
  2. Javascript based Regular Expression Tester
    372
  3. Two useful string functions - substr & substring
    404
  4. How to block a connection from the certain site ?
    349
  5. Is there URLEncode function in Javascript ?
    390
  6. Move window
    545
  7. How to calculate page loading time ?
    358
  8. Number Of Vists
    507
  9. Add Message On Mouse Traling
    2,543
  10. Tooltip
    407
  11. Document Fader
    346
  12. Book Mark This Site
    403
  13. Icon Coupled Url
    425
  14. Button That Will Close The Browser Window
    348
  15. Button That Will Show The Page's Source
    385
  16. Add This Page To Favorites
    397
  17. Code To Clear Browser History
    374
  18. Remove the spaces before begin and after end of text
    334
  19. How To Close A Pop-up Window ?
    440
  20. Pop Up Window On Top
    514
  21. How to display message on browser status bar ?
    474
  22. New Window
    602
  23. Firefox Web Tweaking
    375
  24. Color Table
    361
  25. Cursor Changer
    382
  26. Dual Scroller
    329
  27. Enlarge Image
    511
  28. Confirm The Link Clicked
    628
  29. Send An Email Using A Bean
    1,014
  30. Select And Deselect All Checkboxes By Javascript
    630
Recently updated
  1. Why 100% SEO Guarantees Better User Engagement and How to Achieve It in Your Service
    27
  2. Why SPF and DKIM Are Essential for Linux Email Servers?
    24
  3. How do I create animated background for Google Meet?
    19,692
  4. MaxMind GeoLite2 vs. DB-IP Lite vs. ip-api.com: Choosing the Right Free IP Geolocation Solution
    217
  5. Meet Valkey: Why Redis Changed Its License, Why Valkey is Better, and How to Use It as a Drop-in Replacement
    85
  6. How Rogue Web Scrapers Are Stealing My Content and Destroying My Server
    153
  7. Array of arguments passed to script in PHP
    85
  8. Invalid Auction Storms in Ad Tech
    93
  9. Building MRC-Compliant Instrumentation in Ad Tech: Implementation Steps and Key Challenges
    197
  10. The Two Clocks of Ad Server Architecture
    63
  11. Frequency Cap Architecture Overview
    508
  12. Collecting Proof-of-Play from 100,000 Screens
    141
  13. Vector Search in Relational Databases (RDBs): Trends & Usage Environments
    280
  14. What is RedisVL?
    105
  15. Designing a Skill Registry Architecture: Minimize Token Usage and Maximize AI Performance
    224
  16. TPU & GPU Cluster Management Tools
    232
  17. The Concept of Scaffolding in AI Agents
    221
  18. Beyond Static Pipelines: Architecting LLM Multi-Agent Systems for Autonomous Workflow Orchestration
    575
  19. AI-DLC vs. AI-SDLC: Model-Centric vs. System-Centric AI Development
    252
  20. Fine-Tuning Open-Weight LLMs: Training, Licensing, and Deploying Custom Models with Ollama
    326
  21. Inside the Next-Generation Streaming Architecture: Ultra-Low Latency, SGAI, and AI Codecs
    197
  22. Machine Learning: Training vs. Ranking
    213
  23. The Continuous Learning Machine: Designing a Loop That Actually Turns
    217
  24. The Next-Gen Low-Latency Standards: LL-HLS & MoQ
    189
  25. Designing a Data Curation System Around a Vector Database
    215
  26. Extracting Context from Live Video: The Architecture Got Simpler When We Stopped Building Features
    229
  27. The New Ad Stack Behind Live Sports Streaming: Inside SGAI, EABN, and the Standards Race to Fix Live Monetization
    649
  28. Designing MLOps Architectures to Handle Seasonal Data Drift in EV Fleet Models
    184
  29. From 15 to 40+ FPS: Accelerating PyTorch Object Detection on Automotive ECUs
    207
  30. Understanding Data Lineage
    252