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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running two subroutines

Status
Not open for further replies.

kettch

Programmer
Mar 5, 2001
110
US
I have a link with an onmouseover="" in it. Right now the on mouseover runs a javascript subroutine that puts a description about the link into a variable. the variable then gets put into a little "description" box elsewhere on the page. Is there any way to run two subroutines in a single onmouseover? I also need to alter the style of the link when it gets moused over. So basically i need to make the mouseover do to things.
 
To use two functions:

onmouseover="dothis();onemore()"

dothis() is executed first, then onemore() is done.

You can add more by seperating with semicolons. However, I suggest you use just one function that calls another function. Or keep the number of functions to a minimum.

Good Luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top