• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 274
  • Last Modified:

onclick instead of onmouse

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:

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,
1 Solution
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>
ShopiesAuthor Commented:
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.??

PAQed with points refunded (500)

EE Admin
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now