Bugs item #526805, was opened at 2002-03-06 22:02
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105757&aid=526805&group_id=5757
Category: DynAPI 2 Browser-Specific
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Zuperpostal (zuperstamp)
Assigned to: Nobody/Anonymous (nobody)
Summary: setBgColor('transparent') color NN4.x
Initial Comment:
in Netscape 4.x there is a problem with transparent
layers (dynapi 2.5.7, Win2k, Mac OS9, NN 4.74, NN 4.05
[all 4.x?]) where if setBgColor is something.setBgColor
('transparent') Netscape does some sort of internal
reassignment to either blue (first/primary choice) or
green (second choice). I can fix the problem with this
simple hack (line 295,6) to
src/lib/dynapi/api/dynlayer.js:
<pre>
289 DynLayer.prototype.setBgColor=function(color) {
290 if (color==null) {
291 if (is.ns4) color=null;
292 //alert('got setBgColor: I am
dynapi/api/dynlayer.js');
293 else color='transparent';
294 }
295 else if(is.ns4 && color=='transparent'){
296 color = 'white';
297 //alert(color);//get rid of blue and green
color substitution with trans
parent in setBgColor
298 }
299 this.bgColor=color;
300 if (this.css==null) return;
301 if (is.ns4) this.doc.bgColor=color;
302 else this.css.backgroundColor=color;
</pre>
Note also that NN 4.x does NOT like "inherit" in your
stylesheets, it does the same green/blue substitution
there but seems to swap the blue/green substition
priority. Hope that makes sense.
yours, zuperpostal
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105757&aid=526805&group_id=5757
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[email protected]/