Solved

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

Posted on 2010-11-19
12
343 Views
Last Modified: 2013-12-08
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
0
Comment
Question by:tramworksnick
12 Comments
 
LVL 9

Expert Comment

by:dj0rbit
ID: 34176736
go to Tools>manage add-ons and disabled flash addon
0
 

Author Comment

by:tramworksnick
ID: 34176814
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
 

Author Comment

by:tramworksnick
ID: 34177203
thanks
0
Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

 
LVL 62

Expert Comment

by:gheist
ID: 34177300
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
 
LVL 62

Expert Comment

by:gheist
ID: 34177324
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
 

Author Comment

by:tramworksnick
ID: 34177400
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
 
LVL 7

Accepted Solution

by:
rgranlund earned 500 total points
ID: 34177435
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
 

Author Comment

by:tramworksnick
ID: 34177602
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
 

Author Comment

by:tramworksnick
ID: 34177687
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
 

Author Closing Comment

by:tramworksnick
ID: 34184109
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question