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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Netscape Background Repeat Problem

Status
Not open for further replies.

bont

Programmer
Sep 7, 2000
200
US
Ok, I am not new to HTML, but I have always had the same question. Is it possible to fix the netscape table background problem of it restarting the picture in every new table cell? Netscape 6.0 has finally fixed this bug, but I was wonding if there was a fix. If you want to see what I mean just visit
You will see the background repeat in some of the oddest places.
 
Nope, not that I know of. I've always had that problem. Just use a solid color for your table backgrounds.
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
Is it possible to use browser specific Javascript to declare the background picture/color?
 
hello

yeah bont is right, you can do this for example for the Date function in javascript. the year is return by netscape from after 1900 so you got to add the rest of the dates back, but for ie it's different. So document.layers is for netscape. and appversion is more than 4.1 :)

if(document.layers)
if(parseFloat(navigator.appVersion) > 4.1)
var fixed_year = the_year + 1900;
else
var fixed_year = the_year;

hui
 
What I would like to do is something like this:

if (IE)
stylesheet background 1;
else (if Netscape)
stylesheet background 2;

Does anyone think this possible?
 
var IE4 = (document.all);
var NS4 = (document.layers);

<script>
if(IE4)
document.write(&quot;<BODY BACKGROUNDCOLOR='ie.gif'>&quot;);
else
document.write(&quot;<BODY BACKGROUNDCOLOR='netscape.gif'>&quot;);
</script>
 
<script>
var IE4 = (document.all);
var NS4 = (document.layers);


if(IE4)
document.write(&quot;<BODY BACKGROUNDCOLOR='ie.gif'>&quot;);
else
document.write(&quot;<BODY BACKGROUNDCOLOR='netscape.gif'>&quot;);
</script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top