Solved

Disable submenu items using Dreamweaver.

Posted on 2004-08-31
5
306 Views
Last Modified: 2012-05-05
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
0
Comment
Question by:rskurane
  • 2
5 Comments
 
LVL 2

Expert Comment

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

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

so it looks something like:

<select>
  <option style = "color:#efefef;">foo</option>
  <option style = "color:#efefef;">bar</option>
   <option>foo2</option>
   <option>bar2</option>
  <option style = "color:#efefef;">foo3</option>
  <option>bar3</option>
</select>
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

Cheers,

dayton
0
 

Author Comment

by:rskurane
ID: 11953380
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);
      mm_menu_0726082553_0_1_1.addMenuItem("ELET&nbsp;1100",);
      mm_menu_0726082553_0_1_1.addMenuItem("ELET&nbsp;1101");
      mm_menu_0726082553_0_1_1.addMenuItem("ELET&nbsp;2103");
      mm_menu_0726082553_0_1_1.addMenuItem("ELET&nbsp;2105");
      mm_menu_0726082553_0_1_1.addMenuItem("ELET&nbsp;3105");
      mm_menu_0726082553_0_1_1.addMenuItem("ELET&nbsp;3303");
      mm_menu_0726082553_0_1_1.addMenuItem("ELET&nbsp;3102");
      mm_menu_0726082553_0_1_1.addMenuItem("ELET&nbsp;4108","location='ProjectIdeas4108.htm'");
      mm_menu_0726082553_0_1_1.addMenuItem("ELET&nbsp;4121");
       mm_menu_0726082553_0_1_1.fontWeight="bold";
       mm_menu_0726082553_0_1_1.hideOnMouseOut=true;
       mm_menu_0726082553_0_1_1.bgColor='#555555';
       mm_menu_0726082553_0_1_1.menuBorder=1;
       mm_menu_0726082553_0_1_1.menuLiteBgColor='#FFFFFF';
       mm_menu_0726082553_0_1_1.menuBorderBgColor='#777777';
//
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.

Thanks
0
 
LVL 2

Accepted Solution

by:
ecupd earned 500 total points
ID: 11954076
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&nbsp;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
Cheers,

Dayton

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now