Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Disable submenu items using Dreamweaver.

Posted on 2004-08-31
5
309 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 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