View Full Version : Script for scrolling text along the IE status bar?????
Insane2986
March 26th, 2001, 18:28
Does anyone know where I can find the script needed for the scrolling text along the bottom of the IE (and netscape i think) status bar? This is the same script that many webmasters use to prevent surfers from knowing where a link will take them...
Thx
Canuckkev
March 26th, 2001, 22:01
There's better status bar things you can do than scroll, but heres a scrolling one:
<!-- Status Bar Scroller
A simple status bar text scroll
-->
<BODY onLoad="coffeescroll(100)">
<SCRIPT>
<!--
function coffeescroll(seed) {
var m1 = "Visit the CoffeeCup Software WebPage!";
var m2 = " Your source for the best Web Tool Software!";
var m3 = " http://www.coffeecup.com";
var m4 = "";
var msg=m1+m2+m3+m4;
var out = " ";
var c = 1;
if (seed > 100) {
seed--;
cmd="coffeescroll("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 100 && seed > 0) {
for (c=0 ; c < seed ; c++) {
out+=" ";
}
out+=msg;
seed--;
window.status=out;
cmd="coffeescroll("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 0) {
if (-seed < msg.length) {
out+=msg.substring(-seed,msg.length);
seed--;
window.status=out;
cmd="coffeescroll("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else {
window.status=" ";
timerTwo=window.setTimeout("coffeescroll(100)",75);
}
}
}
//-->
</SCRIPT>
Insane2986
March 26th, 2001, 23:05
Thx dude. A better one, eh? Would ya mind sharin it? :)
Also, do you know if homestead will allow me to insert Body script? They don't have an advanced page options like geocities :(
Sory for sounding like a newbie but im still learnin the basics of HTML.
Canuckkev
March 26th, 2001, 23:18
Meh...learning basics is a lot better than using Dreamweaver all the time(like many who attempt to make websites).
As for what I said about "better ones", I mean scroll bar messages that bouce back and forth, shoot across, and do some other stuff. Just go to some Javascript archive site(search for free javascripts or something) and look in the Enhancements or similar section. Here is s Shooting messsage, if you would rather have that:
<!-- START OF SCRIPT -->
<HTML><HEAD><title>Status Character Scroll</title>
<SCRIPT LANGUAGE="JavaScript"><!-- hide from old browsers
var init_msg = "Insert Message Here"
var str = ""
var msg = ""
var leftmsg = ""
function setMessage()
{
if (msg == "")
{
str = " "
msg = init_msg
leftmsg = ""
}
if (str.length == 1)
{
while (msg.substring(0, 1) == " ")
{
leftmsg = leftmsg + str
str = msg.substring(0, 1)
msg = msg.substring(1, msg.length)
}
leftmsg = leftmsg + str
str = msg.substring(0, 1)
msg = msg.substring(1, msg.length)
for (var ii = 0; ii < 120; ii++)
{str = " " + str}
}
else
{
str = str.substring(10, str.length) // decrease str little by little
}
window.status = leftmsg + str
JSCTimeOutID = window.setTimeout('setMessage()',100)
}
<!-- done hiding --></SCRIPT></HEAD>
<BODY bgcolor="ffffff"
onload="JSCTimeOutID = window.setTimeout('setMessage()',500);">
This script scrolls a message from right to left one
character at a time in your status bar.
<!-- END OF SCRIPT -->
Insane2986
March 27th, 2001, 10:50
Damn, I barely finished hitting the submit button when u replied. Thx again man. I'll be sure to try it out. :):):)
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.