jagguy
asked on
disable menu link
Hi,
On the orange menu, I want to disable the link on the parent nodes of the menu but still see the dropdown list.
For example the 'dyed fabric' link I dont want the user to see the hand appear(not clickable) but I want the dropdown list to appear as it is now.
http://www.mymrt.net/hugh3/home2.php
On the orange menu, I want to disable the link on the parent nodes of the menu but still see the dropdown list.
For example the 'dyed fabric' link I dont want the user to see the hand appear(not clickable) but I want the dropdown list to appear as it is now.
http://www.mymrt.net/hugh3/home2.php
<ul id="horiznav">
<li><a href="#" id="nav-dye" > Dyed Fabric</a><!--link3--> // this still enables the user to click an element
ASKER
The drop down menu doesnt work properly when i do this, as the menu disappears on off hover
That cant be the solution.
That cant be the solution.
Please update these codes:
Add the below code in css file just below #horiznav li a
<li><span id="nav-dye"> Dyed Fabric</span><!--link3-->
Add the below code in css file just below #horiznav li a
#horiznav li span{
display:block;
width:132px;
line-height:30px;
text-align:center;
color:white;
text-decoration:none;
background-color:#EA9531; /*background color*/
border:1px solid white
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok yes it works , there is just 1 issue.
if i do click on the disabled link the drop down menu can either stay visible when it should be hidden or fail to to be visible again unless you click the disabled link again.
if that behaviour can be fixed I can use it otherwise the side effects arent really worth it,
if i do click on the disabled link the drop down menu can either stay visible when it should be hidden or fail to to be visible again unless you click the disabled link again.
if that behaviour can be fixed I can use it otherwise the side effects arent really worth it,
Can you please upload that file on hosting & share the link, so I can check the issue.
ASKER
if you click on the menu option disabled there is a side effect.
http://www.mymrt.net/hugh3/home2.php
http://www.mymrt.net/hugh3/home2.php
It looks that you made a new page for the menu. So still do you need the help?
ASKER
yes I changed it back but your code doesnt work . clicking a menu has side effects
So still do you want to change or you wants to continue what you are using?
ASKER
i will just continue for now
fine :)
Delete the li code and use below code for this:
Open in new window
Thanks
Edwin