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

Is it possible to put several commands in the onmouseout command

P: n/a


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 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Roy G. Vervoort wrote:
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


onmouseout="back('roll1');back('roll2');back('roll 3');"

Or, re-write your back function to handle all three at once and call it as:
back('roll1','roll2','roll3')

If you want to use the second approach, post your function.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #2

P: n/a
Thanks so much.

It's simple if you see it, forgot to put "back" in my string.

regards

roy
"Randy Webb" <hi************@aol.com> schreef in bericht
news:jo********************@comcast.com...
Roy G. Vervoort wrote:
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
onmouseout="back('roll1');back('roll2');back('roll 3');"

Or, re-write your back function to handle all three at once and call it

as: back('roll1','roll2','roll3')

If you want to use the second approach, post your function.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.