Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

StatusBar Script Problems ... Dont know whats wrong!!!

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I made this script:

<script language=&quot;javascipt&quot;>
<!--
timer1 = setTimeout(&amp;quot;a()&amp;quot;, 1000);
clearTimeout(timer1);
timer2 = setTimeout(&amp;quot;b()&amp;quot;, 2000);
clearTimeout(timer2);

function a()
{
setInterval(window.status=&amp;quot;Welcome to my Homepage&amp;quot;, 2000);
}

function b()
{
setInterval(window.status=&amp;quot; &amp;quot;, 2000);
}

//-->
</script>

I think this should work but it doesn't. Can any please
tell my why this doesn't work? What it should do is :
1st second statusbartext: Welcome to my Homepage
2nd second statusbartext:
3ed second statusbartext: Welcome to my Homepage
4th second statusbartext:
5th second statusbartext: Welcome to my Homepage
6th second statusbartext:
and so on and on ...

But the only thing I get is an error!

Thank you very very much!!!

Bobba_Fet
 
You had javascipt instead of javascript! Also here is a more sleek version.

<script language=&quot;javascript&quot;>


var isOn = true;
function flasher(){
isOn=(isOn)?false:true;
var text = 'bangers';
if(isOn){text = &quot;Flashing text&quot;}
else{text= &quot; &quot;}

window.status=text;return true;
}

</script>


&quot;Alright whatever man, I'll hook up the hair, but I aint touchin the ring...Cause I'm still a pla--yer&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top