PDA

View Full Version : status bar message


sn00py
09-10-2002, 10:02 AM
Hi there,
I've just seen the status bar link hider in this site's download page. What i would like to ask is, is it possible to replace the links thats suppose to appear in the status bar with a message of my own. Thanks...hope to get some reply here.

Dean
09-10-2002, 11:42 AM
hi sn00py

you wanted a script for the status bar well here is two scripts one for the title and one for the statuse abr they might not be want you want but i found them to amusing.

<%@LANGUAGE="VBSCRIPT"%>
<title>your info goes here for what you want to show at the top of your page.</title>
<script>

//Document title scroller- By Graeme Robinson (me@graemerobinson.co.uk)
//Exlusive permission granted to Dynamic Drive to include this script in their DHTML archive.
//For full source code, terms of use visit http://www.dynamicdrive.com

var repeat=1//enter 0 to not repeat scrolling after 1 run, othersise, enter 1
var title=document.title
var leng=title.length
var start=1
function titlemove() {
titl=title.substring(start, leng) + title.substring(0, start)
document.title=titl
start++
if (start==leng+1) {
start=0
if (repeat==0)
return
}
setTimeout("titlemove()",140)
}
if (document.title)
titlemove()
</script>
<script language="JavaScript">
function addfavorite(){
window.external.AddFavorite(location.href, document.title);
}

</script>

this one is for the status bar

<script language="JavaScript">
<!--
var wait = 150 //sleep time until next letter (milliseconds)
var message = new Array()
message[0] = "first message"
message[1] = "second message"
message[2] = "third message"
var msgs = 2 //Number of message (0 is first)

var temp = "" //Do not modify these... (recommended)
var curmsg = 0
var a = 0
var counter = 0

function typew()
{
a = a + 1
check()
window.status = message[curmsg].substring(0, a)
if(a == message[curmsg].length + 5)
{
curmsg = curmsg + 1
a = 0
}
if(curmsg > msgs)
{
curmsg = 0 }
counter = setTimeout("typew()", wait)
}
function check()
{
if(a <= message[curmsg].length)
{
if(message[curmsg].substring(a, a + 1) == "")
{
a = a + 1
check()
}
}
}
typew();
//-->
</script>

Have fun.