473,385 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 20 '05 #1
2 1110
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: J. Makela | last post by:
Hallo. This should be a pretty entertaining question for you *real* javascript writers.. I, being the lowly photoshop guy at an ad agency made the mistake of actually saying "HTML" in a...
6
by: Peted | last post by:
Hi wondering what is the best way to do this Need a user to click a button, that sends 3 or 4 string based commands via a TCP/ip socket link I can connect to the ip device no problems, am...
4
by: melmack3 | last post by:
Hello My PHP script executes many bash/cmd commands. Functions like "exec()" or "system()" cause that new bash/cmd session is started, the command is executed and the session is closed....
2
by: Wolfman | last post by:
Hi guys I recently added a popup HREF script to a page, but I'd also like to make the page itself change when the HREF command is clicked. When the user clicks, not only would the popup window...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.