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

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
0
Shopies
Asked:
Shopies
1 Solution
 
mr_egyptianCommented:
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>
0
 
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.??

Regards,
0
 
Computer101Commented:
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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