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

Scripting Help!

Status
Not open for further replies.

thedarkhunter

Technical User
Joined
Jan 23, 2007
Messages
1
Location
AU
I want to include two scripts inside the same function


EG: onMouseover="Menuscript" OnMouseover="Hoverscript"

i want that to be onMouseover="Menuscript & Hoverscript"

I have tried that but it doesn't work... how do i get two scripts to work in unison....


Please help.
 
You will have a hard time getting things to work in "unison" as javascript is not a multithreaded language.

However, to have the same event trigger two functions is just a matter of getting your syntax right:
Code:
<div onmouseover="Menuscript(); Hoverscript(); return false;">

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.

Enable Apps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top