Disable submenu items using Dreamweaver.

Hey guys,
I have created a drop down menu using Dreamweaver. I have submenus and some of them are yet to be active. I want to change the style(color) of them but do not have any idea. I tried adding "_" to the .addmenu to disable them but it did not work. If someone has any idea, please help me.
It is like what you have on the IE browser. You can see "cut,copy" in the Edit menu but cant use them. That is what I would like to create with these submenu items.

Thank You
Who is Participating?
ecupdConnect With a Mentor Commented:
Hi rskurane,
I am not familiar with these menus but i would not mind betting that adding an inline style to the name in right spot may work.
e.g. to grab a line at random from above:

mm_menu_0726082553_0_1_1.addMenuItem("ELET 1101");
if the bit between the brackets read:
"<span style = \"color:#efefef\;\">ELET&nbsp;1101</span>"

or even now i think about it, DW will be rendering this using a function probably in table cells so just plain old:

"<font colour=\"#efefef\">ELET&nbsp;1101</font>"
may do it
what I am trying to do here is force DW to include some CSS or HTML thinking it is part of the menu heading.

Am I correct in assuming these are DHTML pop out menus like these - > http://www.ecu.edu.au/fas/cateringdev/ ?

midnight here ...goin ta bed


You are talking default drop downs yeah? not dhtml type?
for select drop downs (insert > form > List/Menu) in DWMX

style = "color:#efefef;"
inside the option tags of the disabled items

so it looks something like:

  <option style = "color:#efefef;">foo</option>
  <option style = "color:#efefef;">bar</option>
  <option style = "color:#efefef;">foo3</option>
where items 1,2 and 5 will appear greyed out
of course this does not stop anyone selecting them you will need to make sure there is no value and at least inform the user that option is unavailable.
works pc ie6 / moz1.0 and mac safari, dunno about others


rskuraneAuthor Commented:
Hey Dayton,
I am not creating a form. These are menus for navigation tthrough the website.
This is a sample menu created using Dreamweaver.
window.mm_menu_0726082553_0_1_1 = new Menu("See&nbsp;Project&nbsp;Ideas",92,16,"Arial, Helvetica, sans-serif",10,"#000000","#DEDFDE","#FFFFFF","#666666","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
Now some of them,like ELET 3102 and ELET 3105, I want to disable. With disable, I mean I want the user to be able to see the links but be of different color from the others so that he would know not to click on them.

I hope you got what my problem is.
Please help if you have a solution.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.