Instead of writing onmouseover="status='my status here'; return true;" for every link I wanted to make a function that would also reduce filesize.


-------------------------------------------------------------
function stOn(statusLine) {status='statusLine'; return true;}

adn then I would add this to my HTML file:

<a href="pictures.html" onmouseover="stOn('pictures')">pictures</a>
-------------------------------------------------------------


since this didn't work I tried one step back:


-----------------------------------------------------------
function stOn() {status='whatever'; return true;}

<a href="whatever.html" onmouseover="stOn()">whatever</a>
-----------------------------------------------------------
and even this didn't work!
where did I go wrong?