Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Dec 2006
    Location
    Conroe, Texas
    Posts
    18
    Thanks
    4
    Thanked 0 Times in 0 Posts

    How can I "turn off" styles for Netscape 4.0 so it will only see html?

    Hello,
    My page looks horrible in early Netscape (4.0-4.79)and that is what a significant percentage of our patrons use.
    How can I just show the html and no styles in that particular browser?
    Or what do I need to do to make the page legible?
    Thank you
    Link to project page:
    http://www.countylibrary.org/new/big...inheader08.htm

  • #2
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,306
    Thanks
    29
    Thanked 276 Times in 270 Posts
    I loaded an old version of Netscape (4.08) from an old music CD that I had. You can disable style sheets by going to the “Edit” menu, “Preferences” command, choosing “Advanced” in the “Category” tree, and unchecking the “Enable style sheets” box. If you’re looking for CSS exploits, see http://centricle.com/ref/css/filters/.

    It seems kind of weird that someone would be using Netscape 4 in 2007 though. According to the browser, it’s from 1998. The current version of Netscape is 9 (second beta).
    Last edited by Arbitrator; 08-10-2007 at 12:37 AM. Reason: grammatical adjustment and second paragraph
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Two ways to hide stylesheets from Netscape 4.

    1. Use the @import method of attaching the stylesheet instead of <link>

    2. Surround the stylesheet entries to be hidden within

    /*/*/

    /* */

    Netscape 4 treats that as one comment.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #4
    Regular Coder Jutlander's Avatar
    Join Date
    Jun 2007
    Location
    In my own sick little world :P
    Posts
    425
    Thanks
    1
    Thanked 12 Times in 12 Posts
    Like Arbitrator said, I don't think many are using Netscape 4 in 2007, so why not just leave it?

    If I recall correctly, NS 4 will not import a stylesheet if you use the @import rule between style tags:

    Code:
    <style type="text/css">
    @import url("style.css");
    </style>
    .
    .

  • #5
    New Coder
    Join Date
    Dec 2006
    Location
    Conroe, Texas
    Posts
    18
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Thank you all

    Thank you so much for your solutions!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •