#1
  1. The Basketball Star
    Devshed Novice (500 - 999 posts)

    Join Date
    Aug 2001
    Location
    H-Town
    Posts
    550
    Rep Power
    14

    If JavaScript is disabled


    I know there have been many posts covering this topic, but I'm still not quite sure how to do what I want to do. Basically, all I want to do is if the person visits my home page and doesn't have JavaScript enabled, then a message will appear on the screen that says that they need to enable it in order to view my site. I'm having problems because I don't know where the <noscript> stuff shows up on the page. I guess I'll wait for help first before trying to go into the details of how I want it to look. Thanks!
  2. #2
  3. No Profile Picture
    aHVoPw==
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jan 2001
    Posts
    1,058
    Rep Power
    15
    the <noscript> tags only work for browsers with doesn't support JS or have it enabled, so just pretty much use your (java enabled) browser and remove the javascript section and the opening and closing <noscript> tags and the text will be there.
    Visit my new IIS Tutorial Series!
  4. #3
  5. The Basketball Star
    Devshed Novice (500 - 999 posts)

    Join Date
    Aug 2001
    Location
    H-Town
    Posts
    550
    Rep Power
    14
    Okay. And if I wanted it to be in place of some stuff that uses JavaScript, I'd put the <noscript> around the warning and <script> around the JavaScript stuff, right? Because the JavaScript stuff has some regular pictures, so those would show up and I don't want them to.
  6. #4
  7. No Profile Picture
    aHVoPw==
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jan 2001
    Posts
    1,058
    Rep Power
    15
    there's no point in puttin noscript tags around the script tags...


    PHP Code:
    for JS disabled browser

    this
    :
    <
    script language=Javascript>
    <!--
    //blah blah blah
    //-->
    </script>
    <noscript>
    You can see me!
    </noscript>

    is same as:
    You can see me! 
    Visit my new IIS Tutorial Series!
  8. #5
  9. The Basketball Star
    Devshed Novice (500 - 999 posts)

    Join Date
    Aug 2001
    Location
    H-Town
    Posts
    550
    Rep Power
    14
    You misunderstood what I said, but alright.

IMN logo majestic logo threadwatch logo seochat tools logo