avsgunnar
07-21-2003, 09:40 PM
I am trying to write a javascript that places a message in the status bar.
Here is an example:
function sthome()
{window.status = "Return to Homepage"; return true;}
function stoff(b)
{window.status = b; return true;}
In the HTML, then I do the following:
onMouseOver="ston('Homepage'); return true;" onMouseOut="stoff()"; return true;"
This script works fine ands does what its supposed to do.
QUESTION: Is there a way to include the return true commands that I have to put in the HTML into the script itself? I would rather have it look like this in the HTML....
onMouseOver="ston('Homepage');" onMouseOut="stoff()"
I got it to work once, thought I had it figured out, but forgot to save the changes before I started to rework the whole script. Now I can't remember how I did it.
Thanks for any input on this.
Here is an example:
function sthome()
{window.status = "Return to Homepage"; return true;}
function stoff(b)
{window.status = b; return true;}
In the HTML, then I do the following:
onMouseOver="ston('Homepage'); return true;" onMouseOut="stoff()"; return true;"
This script works fine ands does what its supposed to do.
QUESTION: Is there a way to include the return true commands that I have to put in the HTML into the script itself? I would rather have it look like this in the HTML....
onMouseOver="ston('Homepage');" onMouseOut="stoff()"
I got it to work once, thought I had it figured out, but forgot to save the changes before I started to rework the whole script. Now I can't remember how I did it.
Thanks for any input on this.