Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

disable DHTML menu item

Status
Not open for further replies.

wac

Programmer
Sep 6, 2002
7
US
I'm trying to write javascript code to disable a DHTML menu entry. It seems like basically I just remove the 'onclick' attribute on disable and add it back on enable.
Is there a cleaner way to do this? The menu is implemented with a series of DIVs and TABLEs.

The problem I'm having is figuring out which font to use for the greyed out text. Neither outline, emboss, nor engrave look like a standard greyed out menu item (in windows). Any idea of what font to use?
 
Why don't you just change the color of your font to grey ? Water is not bad as long as it stays out human body ;-)
 
When you're talking about engrave, emboss,etc., you're talking about filters. This filter should look something like you want. Obviously it needs to be on a coloured (grey) background.
Code:
<div style=&quot;filter:Shadow(direction=135,color=white,strength=2);width=150;&quot;><font face=&quot;system&quot; size=1 color=&quot;#999999&quot;>Hell Tel</font></div>
Hope I helped / Thanks for helping
if ((x<10&&y<10) &&(((parseInt(x.toString()+y.toString())-x-y)%9)!=0)){ alert(&quot;I'm a monkey's uncle&quot;); }
 
Grey doesn't really look quite right. It seemed more like a combination of embossed and something else. I'll try the filtering on shadow and see what happens. In the end, I'll probably just do grey (but I wont like it).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top