JewelryMakingHQ Build a Successful Jewelry and Craft Business!

Contact Us | Submit Articles

  Articles | Instructions | Book Store | Site Map | HOME

 


 Status Bar JavaScript - Scrolling Text

By Lisa Jay

Lantana Designwear

 

Would you like to place scrolling text within your visitors status bar when they visit your website. Simply copy and paste this in the html code of your web site anywhere within the <body>.
Edit  with your own message. Look at the bottom status bar of this page for an example.
Be sure to change the 6th line, "var text" to say what you want your scrolling banner to say.

Don't go overboard.  This can be an annoyance if overused.

<Script LANGUAGE="JavaScript">
<!-- Hide this from older browsers
// This script was supplied by Hypergurl
// http://www.hypergurl.com

var Count = 3;
var Text = " ** Type your personalized message here!  And you are set.";
var Speed = 60;
var timerID = null;
var TimerRunning = false;

var i = 0;
while (i ++ < 140)
Text = " " + Text;

function Scroll(){
window.status = Text.substring(Count++, Text.length);
if (Count == Text.length)
Count = 0;
timerID = setTimeout("Scroll()", Speed);
TimerRunning = true;
}

function Start(){
Stop();
Scroll();
}

function Stop(){
if(TimerRunning)
clearTimeout(timerID);
TimerRunning = false;
}

Start();

// end hide -->
</Script>

 

 

For more free website templates, HTML scripts, javascripts, css tutorials please visit Hypergurl.

 

 

 

 

Jewelry Making Ideas - Jewelry Making Business Resources - Jewelry Making Instructions

 

Contact Us | Privacy Policy | Advertise | Links

Copyright © 2005-2006 www.jewelrymakinghq.com  All rights reserved.