Hi there,

I want a way to allow me to run one function when an element is moused over and another when the element id moused out. At present i have an onmouseover event handler running a function like so:

Code JavaScript:
<p id="message" style="display:none;" onmouseover="get_message();"><?php echo $message_id; ?></p>

Now could anyone tell me whats the best, most concise, cross browser way to achieve more than one function for more than one event on one element?...part of my getmessage() function is changing the p tags style from diplsay: none to block....what i want is for the element to go back to display none on mouseout.

Ive read some conflicting info on how to do this and im a little confused....could anyone point me in the right direction?