I'm trying to make a function from the mouse over script to display messages in the status bar. I got it working with the following script:
<a href="#" onmouseover="window.status='Home';return true;" onmouseout="window.status='';return true;">Home</a>
but now that I have a few of these for my navigation I was wondering if this could be done by calling it by a function. Is this possible in this case? Here is my code at the moment:
<html> <head> <script type="text/javascript"> function roll(txt) {window.status=''+txt+'';return true;}</script> </head> <body> <a href="#" onmouseover="roll('Home')" onmouseout="roll('')">Home</a></body> </html>
any help would be greatly appreciated. prc