Results 1 to 2 of 2

Thread: alternate version of site for IE6 to fix transparency issues?

  1. #1
    Join Date
    Mar 2008
    Location
    Iowa
    Posts
    103

    alternate version of site for IE6 to fix transparency issues?

    Hey all,

    I was wondering if there's a way to use javascript to detect a person's browser and direct them to an alternate version of my site if theyre using ie6 or below. The site I'm building uses a lot of transparent png's that aren't supported in ie6, and using an alternate style sheet won't work because I can't switch out the pictures for alternates with css. I need a way to recreate the site with flattened jpgs that put everything together so it all looks transparent. Is this possible?
    Radiant Web Design

    Music Reviews at my blog: Life By The Drop

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    No need to use javascript, use a conditional comment:-

    <!--[if lte ie 6]>
    <link rel="stylesheet" href="ie6.css" title="IE6 styles" media="all" type="text/css">
    <![endif]-->

    put it AFTER the main stylesheet link in the head section so that it's processed last. lte means less than or equal to so it will only be used for IE6 and previous versions.
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. 4 Steps to Attract Site Visitors to Image Gallery
    By useful in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 29 Aug 2006, 03:04 AM
  2. new site, mailing list - security issues?
    By kittykatie in forum General Questions
    Replies: 0
    Last Post: 22 Jul 2006, 05:18 AM

Posting Permissions

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