PDA

View Full Version : Anylink Drop Down Anchor Link



clina
09-24-2008, 01:43 AM
1) Script Title: AnyLink Drop Down Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

3) Describe problem: I got the script working and looking pretty, and then I realized that the anchor links don't go anywhere. I saw in the "Anylink CSS menu" that it had this:

var enableanchorlink=1 //Enable or disable the anchor link when clicked on? (1=e, 0=d)

But the Anylink Drop Down doesn't seem to have that option. Is there a way to enable the anchor links on this script as well? Did I miss that?

Thanks SO much for your help! I can supply a link if needed.

Nile
09-24-2008, 02:12 AM
Can you post a link to your page so that I can check it out?(or we)

clina
09-24-2008, 02:21 PM
Sure! Here is the link:

http://client23.bringthebling.com/ (http://client23.bringthebling.com)

You can also see that the link works when you right click on it, but not when you left click.

Nile
09-25-2008, 01:40 AM
Usually when you left click on a link, it doesn't take you there.

jscheuer1
09-25-2008, 07:21 AM
Usually when you left click on a link, it doesn't take you there.

Um, no. The left click is the default (unless you have a left handed mouse) and will take you to the link normally.

However, this menu it is designed so that the triggers for the drop downs will not act as links unless javascript is disabled. Generally this is preferred, and allows for alternate behavior if there is no javascript.

But you can change this if you like by removing:


onClick="return clickreturnvalue()"

from the trigger links.

clina
09-25-2008, 08:09 PM
Man... I can not thank you enough for helping me! I figured it was something easy. I was trying to take the code from the css anywhere link (which enabled the anchor click)... hours of wasted time... sigh.

Again, thank you so much. Worked like a charm.

~ Chrissy