Adblock breaks this site

Block IE 6 on webbsite?

Discussion in 'Web Programming' started by Cheeter, Mar 4, 2007.

  1. Cheeter

    Cheeter Grand Master
    Cheetah Retired Global Moderator

    Joined:
    Jun 5, 2005
    Posts:
    3,851
    Referrals:
    1
    Sythe Gold:
    31
    Discord Unique ID:
    236215891849641985
    Discord Username:
    Charkel#8050
    Extreme Homosex Homosex
    Block IE 6 on webbsite?

    Any one got a script that blocks IE 6 users from entering my website?
    I need this because I'm going to save my images in Transparent .PNG wich IE 6 don't support. Luckily They implemented it in IE 7 so I don't need to block tha.
     
  2. Rshopper

    Rshopper Apprentice
    Banned

    Joined:
    Jan 21, 2007
    Posts:
    685
    Referrals:
    0
    Sythe Gold:
    0
    Block IE 6 on webbsite?

    You're mean. :p The number of IE6 users still exceeds the number of Mozilla and IE7 users combined. But anyways...
    The HTTP_USER_AGENT server variable contains information on the browser in use. Use the $_server() command to access this variable.

    For more information: http://us3.php.net/reserved.variables
     
  3. jackyyll

    jackyyll Guest

    Referrals:
    1
    Block IE 6 on webbsite?

    Isn't there CSS that allows you to switch out the image if they have IE6? I dont remember the exact code :s
     
  4. Cheeter

    Cheeter Grand Master
    Cheetah Retired Global Moderator

    Joined:
    Jun 5, 2005
    Posts:
    3,851
    Referrals:
    1
    Sythe Gold:
    31
    Discord Unique ID:
    236215891849641985
    Discord Username:
    Charkel#8050
    Extreme Homosex Homosex
    Block IE 6 on webbsite?

    Yes but I'm using background images wich it dosen't support e.t.c.
     
  5. Cody

    Cody Grand Master
    Visual Basic Programmers

    Joined:
    May 10, 2005
    Posts:
    3,052
    Referrals:
    5
    Sythe Gold:
    30
    Block IE 6 on webbsite?

  6. Leviticus

    Leviticus Guest

    Referrals:
    0
    Block IE 6 on webbsite?

    Nice Cody, I'm adding that to my site. IE is fugly.
     
  7. T-Trader

    T-Trader Member

    Joined:
    Mar 15, 2007
    Posts:
    92
    Referrals:
    0
    Sythe Gold:
    0
    Block IE 6 on webbsite?

    Disallowing IE users from entering your website is a bad thing to do as there are a lot of IE users.

    Use this code to fix the PNG background bug, I took this code from the microsoft's website (I had the same with my own website):
     
  8. cp

    cp an cat
    Banned

    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0
    Block IE 6 on webbsite?

    Uh, read the whole thread; that's been posted already.
     
  9. Cheeter

    Cheeter Grand Master
    Cheetah Retired Global Moderator

    Joined:
    Jun 5, 2005
    Posts:
    3,851
    Referrals:
    1
    Sythe Gold:
    31
    Discord Unique ID:
    236215891849641985
    Discord Username:
    Charkel#8050
    Extreme Homosex Homosex
    Block IE 6 on webbsite?

    <3 Thank you :D

    I forgot about this topic :p
     
  10. r0b0t1

    r0b0t1 Active Member

    Joined:
    Jan 23, 2007
    Posts:
    124
    Referrals:
    0
    Sythe Gold:
    0
    Block IE 6 on webbsite?

    Code:
    <script type="text/javascript">
    <!--
    var navname = Navigator.AppName
    
    If (navname == Microsoft Internet Explorer)
    {
     document.location('PAGE TO BE TRANSFERRED TO')
    }
    </script>
     
< [req] PHP world switcher | Online Text Based Game Help? >


 
 
Adblock breaks this site