how do I stop a flash background from loading in IE6/7 XP?

Hi
I have a flash/php site with a flash movie running in the background - http://www.dernier-hamlyn.com but site doesn't show in ie7 and below on XP - other than browser redirect which would mean 2 sites is there a way to instruct a browser load an alternative static background if XP?
thanks in advance
tramworksnickAsked:
Who is Participating?
 
rgranlundCommented:
You could simply comment the div with
<!--[if IE 6]>
<div style="display:hidden;">
FLASH
</div>
<![endif]-->
Then it will not load if the browser is IE 6.  If you would like me to further write this out
0
 
dj0rbitCommented:
go to Tools>manage add-ons and disabled flash addon
0
 
tramworksnickAuthor Commented:
Maybe I'm not being clear - this is a site that I want visitors using older ie browsers on XP machines to be able see without having to do anything - I'd like help with a script to recognise a browser just as you would with browser redirect and load the appropriate background - prob a js solution unless its somehow poss to do in css

thanks
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
tramworksnickAuthor Commented:
thanks
0
 
gheistCommented:
You can try avoiding quirks mode in browsers by correcting your site:
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.dernier-hamlyn.com%2Fcatalogue%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

BTW it renders perfectly on Linux Opera and Firefox....
I think you can wrap flash background to skip IE before 8 and problem solved. In a year nobody will remember IE7 anyway....
0
 
gheistCommented:
PS do you need JS which does not load SWF on IE<8 ?
PPS yslow! and pagespeed says you have to polish server configuration to reduce data volume expenses....
0
 
tramworksnickAuthor Commented:
appreciate comments on validation - still to do and I'll check pagespeed

I do need JS which does not load SWF on IE<8

0
 
tramworksnickAuthor Commented:
Hi

Thanks I've tried it but now the flash isn't visible in any browser - I'm using JS to load the flash movie - have I added your code correctly?

<!--[if IE 6]>
<div style="display:hidden;">
<div id="bgflash" style="position:absolute;">
  <script type="text/javascript">
    var flashvars = {
      xml_path: "http://www.dernier-hamlyn.com/catalogue/test/xml/bgslideshow.xml"
    };
    var params = {
      bgcolor: "#000000",
      allowfullscreen: "true",
      wmode: "transparent"
    };
    var attributes = {};
    swfobject.embedSWF("bgslideshow.swf", "bgflash", "100%", "100%", "9.0.0",
    "bgslideshow.swf", flashvars, params, attributes);
  </script>
</div>
</div>
<![endif]-->
0
 
tramworksnickAuthor Commented:
Hi

The flash movie background is visible in ie6 but site above is now ranged right not left - I've just checked site on crossbrowsertesting.com and seems issue is more layout related with site not able to run on top of movie in IE6

any suggestions

thanks
0
 
tramworksnickAuthor Commented:
It was the answer to the question put and it helped me see the real problem which was slightly different to that reported to me - apols I should have checked more before posting question - the actual issue will have to be dealt with by browser redirect but I'll open a new clear question to see if there is another solution.

thanks Nick
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.