Terry
07-16-2003, 09:00 AM
Hi,
I'm trying to get a drop-down menu to be semi-transparent for mozilla and ie. Earlier I had it working but now it doesn't work for netscape.
http://www.xdevdesign.com/clients/pept/
The css is written out with js so I can still validate, but that shouldn't make a difference.. it was working before. Code for the sub-menu:
<script type="text/javascript">
//<![CDATA[
var w_style = '<style type="text/css">div.menu \{ '
+ 'position: absolute\;'
+ 'left: 27%\;'
+ 'top: 30px\;'
+ 'background: #f5f5f5\;'
+ 'color: #000\;'
+ 'visibility: hidden\;'
+ 'z-index: 10\;'
+ 'text-align: left\;'
+ 'padding: 0px\;'
+ 'border: 1px solid #999\;'
+ 'filter:alpha(opacity=90)\;'
+ 'filter:progid:DXImageTransform.Microsoft.Alpha(opacity=90)\;'
+ '-moz-opacity:0.9\;\}<\/style>';
document.write(w_style);
//]]>
</script>
Any ideas? I know it must be simple but I can even see straight I been working on this page so long!
Thanks,
- Terry
smilies disabled by jkd, your friendly supermoderator :)
I'm trying to get a drop-down menu to be semi-transparent for mozilla and ie. Earlier I had it working but now it doesn't work for netscape.
http://www.xdevdesign.com/clients/pept/
The css is written out with js so I can still validate, but that shouldn't make a difference.. it was working before. Code for the sub-menu:
<script type="text/javascript">
//<![CDATA[
var w_style = '<style type="text/css">div.menu \{ '
+ 'position: absolute\;'
+ 'left: 27%\;'
+ 'top: 30px\;'
+ 'background: #f5f5f5\;'
+ 'color: #000\;'
+ 'visibility: hidden\;'
+ 'z-index: 10\;'
+ 'text-align: left\;'
+ 'padding: 0px\;'
+ 'border: 1px solid #999\;'
+ 'filter:alpha(opacity=90)\;'
+ 'filter:progid:DXImageTransform.Microsoft.Alpha(opacity=90)\;'
+ '-moz-opacity:0.9\;\}<\/style>';
document.write(w_style);
//]]>
</script>
Any ideas? I know it must be simple but I can even see straight I been working on this page so long!
Thanks,
- Terry
smilies disabled by jkd, your friendly supermoderator :)