Putting multiple actions into a onMouseover tag

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Putting multiple actions into a onMouseover tag

Post by nigma »

Hey once again I have a javascript tag. I have almost found a forum just for this, so please don't chew me out for posting this on php forum.

Here is what I want to do, I want to make a button that when the mouse moves over it it will change the bgcolor to red and do a window.status='test'; return true"

Thanks a lot for all help provided.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

  • window.status='test';
  • return true;
that already are two statements, you already know how to do it ;)
try

Code: Select all

onMouseOver="this.style.backgroundColor='red'; window.status='test'; return true;"
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

You won't get chewed out but the message will be moved to the Client Side forum because that is where it belongs.

Mac
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

Thank you very much for the help. From now on I will post these questions there.

Thanks again for the help and advice.
Post Reply