Link to home
Start Free TrialLog in
Avatar of Shopies
Shopies

asked on

onclick instead of onmouse

Hi,
I've found this script from dynamicdrive.con and it's really great, lite and meets my needs perfectly. But I need to change a little thing in it. Which is, the links appear on the top - the main categories link - change their sub categories when I move the mouse on it while I want to let it change when I click on it. Here is a link to the script:
http://dynamicdrive.com/dynamicindex1/tabmouseover.htm


2. if someone can modify the script so it memorize the sub links when I move from a page to another.
3. The default now is that there are no sub menus appear for the sub categories, can someone change it to make menu[0] is the default for example?

Best regards,
Hakeem
Avatar of mr_egyptian
mr_egyptian
Flag of United States of America image

Find this comment in the DD code, and alter the line below it  it similarly to what I have here:

<!--Links used to initiate the sub menus. Pass in the desired submenu index numbers (ie: 0, 1) -->
<a href="javascript:void(0);" onclick="showit(0)">JavaScript Kit</a> | <a href="javascript:void(0);" onclick="showit(1)">Freewarejava</a><br>
Avatar of Shopies
Shopies

ASKER

Hey mr_egyptian,
Thank you so much. Your solution was so easy to apply. Could you please see if you can modify the code regarding the second and the third issues.??

Regards,
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial