Home: Other Programming Languages: Javascript:
Help not sure what it is called



Pro_4
User

Apr 19, 2001, 4:29 PM


Views: 19536
Help not sure what it is called

hey,
i was wondering (not even quite sure if it is javascript) but how do you put those little scrolling messages on the status bar of the web browser? If it isnt javascript what is it and where can i find it?

Always add fun to Perl
$fun = "fun"; $perl = "Perl";
print " Always add $fun to $perl"; die;


Jasmine
Administrator

Apr 19, 2001, 8:25 PM


Views: 19534
Re: Help not sure what it is called

Yep, it's javascript. Check out http://javascript.internet.com/scrolls/.



James
Troll

Apr 19, 2001, 8:37 PM


Views: 19534
Re: Help not sure what it is called

I imagine there are lots of alternatives, but here's one. Put it inside of your <HEAD></HEAD> tags:


Code
<script language="JavaScript"> 
msg = " text to scroll"
pos = 0;
function ScrollMessage() {
window.status = msg.substring(pos, msg.length) +
msg.substring(0, pos);
pos++;
if (pos > msg.length) pos = 0;
window.setTimeout("ScrollMessage()",100);
}
ScrollMessage();
</script>

No guarantees on this one ... I just found it on the web.

(And yes, the script I found was missing the ";" after the msg line.)



Pro_4
User

Apr 20, 2001, 5:15 PM


Views: 19527
Re: Help not sure what it is called

Thanks James and Jasmine, that is what i was looking for. Really appreciate the help.

Always add fun to Perl
$fun = "fun"; $perl = "Perl";
print " Always add $fun to $perl"; die;


Pro_4
User

Apr 21, 2001, 2:33 PM


Views: 19520
Re: Help not sure what it is called

Thanks James that script works really well. Just wondering, everytime i put my mouse over a link that link tries to appear on the status bar making the message that is scrolling kinda static. Is there any solution to this or do you just have to grin and bear it?

Always add fun to Perl
$fun = "fun"; $perl = "Perl";
print " Always add $fun to $perl"; die;


James
Troll

Apr 23, 2001, 9:48 PM


Views: 19507
Re: Help not sure what it is called

I have no idea. Like I said, I just grabbed that script from another application. I noticed the little *burp* on the mouseover, but it's not a problem for what I'm using it for.

You might check some of the other scripts at the URL that Jasmine posted. I imagine you could find one or two that let you define some of the settings.



Pro_4
User

Apr 24, 2001, 10:48 AM


Views: 19503
Re: Help not sure what it is called

Oy, yeah i will check out that site in just a sec. I have seen it in some sites where they take out the show link in the status bar. Maybe there is a command like the disable right click thing.

Always add fun to Perl
$fun = "fun"; $perl = "Perl";
print " Always add $fun to $perl"; die;


Pro_4
User

Apr 24, 2001, 4:06 PM


Views: 19499
Re: Help not sure what it is called

Wow i just check that javascript site out. I didnt realize there were that many scroller scripts and in some many varieties.

Always add fun to Perl
$fun = "fun"; $perl = "Perl";
print " Always add $fun to $perl"; die;