Link to home
Start Free TrialLog in
Avatar of jagguy
jagguyFlag for Australia

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

<ul id="horiznav">
   
    
 
    <li><a  href="#" id="nav-dye" > Dyed Fabric</a><!--link3--> // this still enables the user to click an element
 

Open in new window

Avatar of Edwin Hoffer
Edwin Hoffer
Flag of United States of America image

Hello

Delete the li code and use below code for this:

 <li><spam id="nav-dye" > Dyed Fabric</spam>

Open in new window


Thanks
Edwin
Avatar of jagguy

ASKER

The drop down menu doesnt work properly when i do this, as the menu disappears on off hover
That cant be the solution.
Please update these codes:

<li><span id="nav-dye"> Dyed Fabric</span><!--link3-->

Open in new window


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
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Edwin Hoffer
Edwin Hoffer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jagguy

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,
Can you please upload that file on hosting & share the link, so I can check the issue.
Avatar of jagguy

ASKER

if you click on the menu option disabled there is a side effect.

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?
Avatar of jagguy

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?
Avatar of jagguy

ASKER

i will just continue for now
fine :)