PDA

View Full Version : Where do you edit in this code?



Missouri Missing
01-20-2008, 04:19 AM
1) Script Title: AnyLink Drop Down Menu

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

3) Describe problem: Where do you edit the main links in this code: Web Design | Technology | News Sites

I only see a place to edit the drop down content from the main links.

Thanks in advance...

jscheuer1
01-20-2008, 04:37 AM
From Step 2 (onmouseover example):


<a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '150px')" onMouseout="delayhidemenu()">Web Design</a>

However, these links will only fire if javascript is unavailable or disabled. You can change this behavior by getting rid of:


onClick="return clickreturnvalue()"

Without that, they will behave as normal links even with javascript enabled.

Or, if you only want to change the text that is displayed (still from Step 2, first example):


<a href="default.htm"
onClick="return clickreturnvalue()"
onMouseover="dropdownmenu(this, event, menu1, '150px')"
onMouseout="delayhidemenu()">Web Design</a>

Hopefully, without saying is how it goes if you are using the drop down onclick method (still from Step 2, second example):


<a href="default2.htm"
onClick="return dropdownmenu(this, event, menu2, '200px')"
onMouseout="delayhidemenu()">News Sites</a> (onclick)

In cases like that, you can edit the link text (green in the above), but the link can never fire while javascript is enabled, because in cases like that, that's what causes the drop down to drop down.

Missouri Missing
01-20-2008, 04:54 AM
Thanks John, go figure that I was just missing it as I thought.