TinyPortal

Development => Block Codes => Topic started by: Techdomain on September 24, 2006, 09:28:28 AM

Title: Scrolling Status Bar Text Block
Post by: Techdomain on September 24, 2006, 09:28:28 AM
If you want to add scrolling text to the bottom of visitors status bars, just add the following code to a script block, hide the frame and title, and publish it.
Edit line 4 to say what you want it to say.
I have tested this in IE6

Example: look at the bottom left of your browser window at http://www.techdomain.com.au


<Script LANGUAGE="JavaScript">
<!-- Hide this from older browsers
var Count = 0; var
Text = "This is the line that you edit.";
var Speed = 90;
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>
Title: Re: Scrolling Status Bar Text Block
Post by: RoarinRow on September 24, 2006, 09:32:03 AM
Thanks cool, thanks!   8)
Title: Re: Scrolling Status Bar Text Block
Post by: Techdomain on September 24, 2006, 09:41:56 AM
No worries :)
Title: Re: Scrolling Status Bar Text Block
Post by: Vinspire on September 24, 2006, 10:40:31 AM
ermm ... which block is this ? can printscreen the actual image.

i did take a look at the site and bottom right but still don't get it.

sorry for my stupidity :(
Title: Re: Scrolling Status Bar Text Block
Post by: Techdomain on September 24, 2006, 10:47:24 AM
bottom left, off screen :) where it usually says "Done"
Title: Re: Scrolling Status Bar Text Block
Post by: Techdomain on September 24, 2006, 10:52:13 AM
Here you go:
Title: Re: Scrolling Status Bar Text Block
Post by: christicehurst on October 01, 2006, 09:56:24 AM
Damnit this is a clever idea. Well Done!
Title: Re: Scrolling Status Bar Text Block
Post by: rctxtreme on October 01, 2006, 10:07:59 PM
Warning people, IE only
Title: Re: Scrolling Status Bar Text Block
Post by: akulion on October 02, 2006, 01:10:14 AM
It works in FF for me too - havent tried opera yet though but it should I think
Title: Re: Scrolling Status Bar Text Block
Post by: rctxtreme on October 02, 2006, 02:50:38 AM
In FF 1.5.0.7 it just says Done under Tech Domain...
Title: Re: Scrolling Status Bar Text Block
Post by: akulion on October 02, 2006, 03:06:33 AM
oohh sorry i didnt read properly...im confusing this with the other snippet that was posted about the scrolling title bar

lol
Title: Re: Scrolling Status Bar Text Block
Post by: Porky on October 02, 2006, 03:31:48 AM
Quote from: rctxtreme on October 02, 2006, 02:50:38 AM
In FF 1.5.0.7 it just says Done under Tech Domain...
yeap same here
Title: Re: Scrolling Status Bar Text Block
Post by: bluedevil on November 04, 2006, 03:06:43 PM
This is cool. It works pretty well :up:
Title: Re: Scrolling Status Bar Text Block
Post by: Crip on November 04, 2006, 03:58:56 PM
Yeah, but most folks are using FF nowadays ...
Title: Re: Scrolling Status Bar Text Block
Post by: Techdomain on November 11, 2006, 11:16:54 AM
dont know about most... that is a claim and a half!

my site stats for the last week:
MS Internet Explorer 129059 75.3%
Firefox 31856 18.6%
Opera 4935 2.8%
Mozilla 2432 1.4%
Unknown 1530 0.8%
Safari 1028 0.6%
Netscape 294 0.1%
Camino 41 0%
LibWWW 19 0%
Konqueror 5 0%
Others 7 0%

I might have a look though and see if I can make it work for FF also...
Title: Re: Scrolling Status Bar Text Block
Post by: Techdomain on November 11, 2006, 11:40:36 AM
just did some more testing - to get it working in FF, you need to enable it in the browser:

Tools > Options > Content > Java : Advanced >
then tick the "Change Status Bar Text" checkbox.

was tested with FF v2.0