PDA

View Full Version : DD Tab Menu II - Urgent Help - how to change onmouseover to onclick



techie_ns
04-28-2006, 09:51 PM
I was testing this script DD Tab Menu II.

It is working great. Here is the url:
http://www.dynamicdrive.com/dynamicindex1/ddtabmenu2.htm

I tried to change the mouseover event to onclick event and it didn't work.
Any ideas ?

Thanks in advance.

techie_ns.

ddadmin
04-30-2006, 05:17 AM
Changing the onmouseover event to onclick will work, though be sure to add "return false" to the end as well:


<div id="ddimagetabs">
<a href="http://url/" onClick="expandcontent('sc1', this); return false">Home</a>
<a href="http://url/" onClick="expandcontent('sc2', this); return false">New</a>
<a href="http://url/" onClick="expandcontent('sc3', this); return false">Revised</a>
<a href="http://url/" onClick="expandcontent('sc4', this); return false">Submit</a>
</div>