Solved

Disable submenu items using Dreamweaver.

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 …
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 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