JavaScript hide list help

hi guys,

i want to create a link where a user can change the category that he is browsing.

when the user clicks on the link, a list of categories appear in the dropdown, but when the mouse is not over the list, the list disappears and the user only sees the link. The list contains hyperlinks to new category pages.

I know this is very basic for u geeks, but u see im very new to javascript.

I create a div for the list and hid it and created an onclick event for the link, but when the list of categories appear, the page moves down. i dont want that to happen.

Please help.

Thanks in advance.

post the code you have so far and we can try to help you get it working properly.