question about onmouseover=window.status

liunx

Guest
MY specific question is how do I use the onmouseover=window.status when I'm also using a different onmouseover command? <br />
<br />
I AM CURRENTLY RUNNING THIS SCRIPT TO PRELOAD MOUSEOVER GIF BUTTONS FOR MY MENU FRAME:<br />
<br />
<br />
<script language="javascript"><br />
<!--<br />
<br />
home=new Image(25, 90)<br />
home.src=http://www.htmlforums.com/archive/index.php/"images/home.gif"<br />
mohome=new Image(25, 90)<br />
mohome.src=http://www.htmlforums.com/archive/index.php/"images/mohome.gif"<br />
//--><br />
</script><br />
<br />
<br />
AND HERE IS THE LINK FOR THE MOUSEOVER INSIDE MY MENU BAR FRAME:<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"front.htm" onmouseover="document.nhome.src=mohome.src" <br />
onmouseout="document.nhome.src=http://www.htmlforums.com/archive/index.php/home.src" target="main" ><img src="images/home.gif" name="nhome" width=90 height=25></a><br />
<br />
I ALSO WANT TO ADD STATUS BAR TEXT USING THIS FORM:<br />
<br />
ONMOUSEOVER="window.status='Whatever I want to say in the status bar';return true;"<br />
ONMOUSEOUT="window.status='';return true;"<br />
<br />
So basically I need to combine the ONMOUSEOVER="document.name.src=http://www.htmlforums.com/archive/index.php/mouseovername.src" command with the "window.status='status bar text';return true," command. I know that it must be possible, and I know that the exact order is crucial, but for the life of me I can't figure out how to do both of them. I've tried switching around the order of the commands, and I either get the status bar text working but not the GIF rollover, or I get the GIF rollover and not the text in the status bar, or neither. What am I missing? I figure I need to add some backslashes or semicolons or something. Any help would be appreciated.<!--content-->try one of these.<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"front.htm" onmouseover="document.nhome.src=mohome.src;window.status='Whatever I want to say in the status bar';return true;" <br />
" <br />
onmouseout="document.nhome.src=http://www.htmlforums.com/archive/index.php/home.src" target="main" ><img src="images/home.gif" name="nhome" width=90 height=25></a> <br />
<br />
or<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"front.htm" onmouseover="document.nhome.src=mohome.src" <br />
onmouseout="document.nhome.src=http://www.htmlforums.com/archive/index.php/home.src" target="main" ><br />
<br />
<img src=http://www.htmlforums.com/archive/index.php/"images/home.gif" name="nhome" width=90 height=25 ONMOUSEOVER="window.status='Whatever I want to say in the status bar';return true;" <br />
ONMOUSEOUT="window.status='';return true;"><br />
</a> <br />
<br />
I hope this helps.<!--content-->
 
Back
Top