PDA

View Full Version : Anylinkcssmenu - Controlling anchor link



DonD
09-19-2011, 03:43 PM
1) Script Title: AnylinkCSSMenu

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

3) Describe problem: Referencing the nav bar at http://rosegarden.mesacc.edu/home.html, I want anchor "News" to operate with no drop down, yet look like the other anchors. If the user clicks on an anchor that has a drop down, I want nothing to happen. How do I accomplish this? Thanks for any help!

Don

ddadmin
09-20-2011, 06:00 AM
Referencing the nav bar at http://rosegarden.mesacc.edu/home.html, I want anchor "News" to operate with no drop down, yet look like the other anchors.


Hmm the "news" link already looks the same to me compared to those links with a drop down for me, at least in FF.


If the user clicks on an anchor that has a drop down, I want nothing to happen. How do I accomplish this? Thanks for any help!

Why not just set the href attribute of each anchor link to "#"- this way when clicked on they simply take the user to the top of the page (in other words, does nothing).

DonD
09-20-2011, 03:12 PM
Great idea! Thanks much!

Don