View Full Version : un-hyperlink

12-08-2009, 06:54 PM
1) Script Title: remove hyperlink from main

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

3) Describe problem:
hi...is there anyway to prevent the main/top menu items from being clickable/linkable?

these top links do not have pages assigned and i'd prefer to not have them clickable if there's nothing there. it just refreshes the current page, as is, but was hoping for a better solution.

thanks for any help.

12-08-2009, 08:27 PM
Instead of something like:

<li><a href="http://www.dynamicdrive.com/new.htm" rel="ddsubmenu1">DHTML</a></li>

Do it more like (drop the href attribute entirely):

<li><a rel="ddsubmenu1">DHTML</a></li>

12-08-2009, 09:52 PM
Perfect. Thank you so much, once again, John. Big help for me.