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

Can "onmouseover" do 2 things at once?

Status
Not open for further replies.

RenoWV

Technical User
Mar 16, 2002
156
US
If I wanted to place a short message in the status bar using this code:

<a href=&quot;index.html&quot; onmouseover=&quot;window.status='Here is the info about this link'; return true&quot;>HOME</a>

and I also wanted to add a sound that would trigger on mouseover, using this code (the sound mouseover is referencing a full js in the <head>):

<a href=&quot;index.html&quot; onmouseover=&quot;playsound('sound/sound1.wav')&quot;>HOME</a>


Question: How can I do both onmouseovers at the same time??
 
Use:

<a href=&quot;index.html&quot; onmouseover=&quot;window.status='Here is the info about this link'; playsound('sound/sound1.wav'); return true&quot;>HOME</a>
 
As always, thank you trollacious - that works perfectly...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top