Solved

Disable submenu items using Dreamweaver.

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

813 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

11 Experts available now in Live!

Get 1:1 Help Now