Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Two responses to the same event?

Status
Not open for further replies.

bgreenhouse

Technical User
Feb 20, 2000
231
CA
Hi folks

you were so helpful last time, I thought I'd ask another simple question. What if I want two things to happen on the same event. For instance, if I want a rollover image and a message in the status bar when the mouse passes over an image. Do I iterate mouseOver twice, or is there a way to assign to properties?

Thanks

Ben [sig][/sig]
 
Ben,

you can put multi functions in the mouseOver event, you don't need to call it twice, for example:

<IMG SRC=&quot;submit.gif&quot;
onMouseOver = &quot;submitForm();
rolloverImage();
StatusMsg();&quot;
onMouseOut = &quot;.....&quot;
>
all three method will get call when user mouseover the image.

hope this help, [sig]<p>Chiu Chan<br><a href=mailto:cchan@gefmus.com>cchan@gefmus.com</a><br><a href= America, Inc</a><br>[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top