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

mouseover problem

Status
Not open for further replies.

cactus1000

Programmer
Aug 31, 2001
149
US
I have an image that needs to change on mouseover. It also must execute a javascript when clicked on. I gan get one function or the other to work, but not both at the same time.

here's the code:

<div id="pullout1Sidebar"><p align="center"><a href="javascript:pulloutStart(1)"><IMG NAME="administrationbb0" SRC="administrationbb.gif" WIDTH="90" HEIGHT="30" BORDER="0" USEMAP="#administrationbb"></a></p></div>

It seems that the "USEMAP" is preventing the javascript from executing (the javascript executes when the image is clicked if I remove this).

Any ideas??

 
instead of doing <a href="...">

use <img onmouseover="javascript:pulloutStart(1)" onclick="function" style="cursor:hand">

Listen All I ask is that You close out a Post You Started!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top