PDA

View Full Version : Understanding of script



averagecdn
08-29-2006, 10:44 PM
1) Script Title: AnyLink Drop Down Menu

2) Script URL (on DD):

http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

3) Describe problem: I have implemented this menu system on my companies Intranet however I am trying to understand a section of this script. What does the <a href="default.htm".....> do. Is it required or what?

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

Thanks for the assistance.

ddadmin
08-30-2006, 03:29 AM
If you mean "default.htm", that's just a page you should specify to fall back on in the event the visitors has JavaScript disabled. In that case, clicking on the link will navigate to "default.htm", instead of drop down the menu.

averagecdn
08-30-2006, 01:12 PM
So then its not totally required.

Twey
08-30-2006, 01:24 PM
Of course it is, otherwise visitors without Javascript won't be able to navigate through your site.

mburt
08-30-2006, 01:29 PM
Always having a backup wouldn't hurt :p

averagecdn
08-30-2006, 07:39 PM
Everyone in our environment is able to use java. No reason for a back solution

Twey
08-30-2006, 07:58 PM
Java's got nothing to do with it.