By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,948 Members | 900 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,948 IT Pros & Developers. It's quick & easy.

multiple commands in OnMouseOut

P: n/a


Is it possible to put several commands in the onmouseout command

I'm having several links each with its own ID (roll1, roll2, roll3, etc) and
i would like all to change on the OnMouseOver command

this changes the color of the link withthe id "roll1"
onMouseOut=back('roll1')

this changes the color of the link withthe id "roll2"
onMouseOut=back('roll2')

and this changes the color of the link withthe id "roll3"
onMouseOut=back('roll3')

I would like all of them to change with the OnMouseOver command
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Roy G. Vervoort" <ro**********@rojaal.nl> wrote in message news:<40*********************@news.xs4all.nl>...
Is it possible to put several commands in the onmouseout command

I'm having several links each with its own ID (roll1, roll2, roll3, etc) and
i would like all to change on the OnMouseOver command

this changes the color of the link withthe id "roll1"
onMouseOut=back('roll1')

this changes the color of the link withthe id "roll2"
onMouseOut=back('roll2')

and this changes the color of the link withthe id "roll3"
onMouseOut=back('roll3')

I would like all of them to change with the OnMouseOver command

Please post javascript questions to the proper forum. Java and
javascript are not the same thing, not at all.

To answer your question: write a new function that contains all of the
calls. Then use the onMouseOut event to call your new function.

---
Jared Dykstra
http://www.bork.org/~jared
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.