Netscape problem

S

Steve

Hi Everyone:

I am using the following java script to select a linked stylesheet depending
on resolutions:
<script language="Javascript">
if (screen.width <= 800) {document.write("<link rel=stylesheet type=text/css
href=library/contentStyle.css>"); }
else {document.write("<link rel=stylesheet type=text/css
href=library/contentStyle1.css>");}
</script>This is working well in IE, however, it appears to be failing in
Netscape. Any ideas would be very much appreciated.Steve G
 
M

Murray

Don't bother. My screen will test at 1280x1024, but my browser viewport is
seldom wider than 750px or so. You would serve me the wrong stylesheet as a
result. This means that you are trying to use a bludgeon rather than some
finesse to solve a problem.

Why not tell me what your problem is, and I'll try to help you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top