View Full Version : how to fix the IE/Opera problem of having to click on the swf?
Hello
Wonder how to fix that IE 7 issue of having to click on the flash file/banner in order to activate it...Opera also has this issue as well. Thing is I need a fix that will be easy in one go - I'v e got a rotation/random array/series of banners on this home page -
http://www.enhancedwireless.net/index.html
4 of which are Flash - so how can I script it to where all 4 swf files will be taken care of...that they'll be activated in Opera and IE?
Thanks much
KB
CyanBlue
08-07-2007, 08:44 PM
Howdy and Welcome... :)
Check out the SWFObject...
http://blog.deconcept.com/swfobject
Great thanks - wonder before I go through this link, if there's a way for it to apply once on the home page in my array - so I don't have to apply this code on every swf file...do you know?
KB
CyanBlue
08-07-2007, 08:51 PM
I think you have to do that one by one...
Capital "U", Capital "RRRR", Capital "G", Capital "H", with an added "!"
(thanks for your link though:)
CyanBlue
08-07-2007, 09:13 PM
Well... Welcome to the computer world... :p
Well, I just spent a while trying to make this work - but there's no difference on Opera or IE 7 - my banner still won't work unless you click on the banner to activate it...I stripped out quite a bit of the html that Flash puts on the file (it didn't work even when I did leave all that js in) and put in the following - what's wrong? This is the entire html now for my banner...
=====================
<!-- saved from url=(0013)about:internet -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>HigherThroughputRO</title>
<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css">
<!--
a:link {
color: #CCCCCC;
}
-->
</style></head>
<body bgcolor="#1246b4">
<!--url's used in the movie-->
<a href="http://www.enhancedwireless.net/Technology/ODMA.shtml"></a>
<a href="http://www.enhancedwireless.net/Technology/NewProds.shtml"></a>
<a href="http://www.enhancedwireless.net/Company/who.shtml"></a>
<!--text used in the movie-->
<div id="flashcontent">Please update your <a href="http://www.adobe.com/products/flashplayer/">Flash</a> Player.</div>
<script type="text/javascript">
var so = new SWFObject("HigherThroughputRO.swf", "HT", "800", "212", "8", "#1246b4");
so.addParam("quality", "best");
so.addParam("wmode", "window");
so.write("flashcontent");
</script>
</body>
</html>
===================
This is how the banner appears on my index page in the array of 7 files:
==========================
myAd[0] = "<object data='images/bnrs/HigherThroughputRO.swf' type='application/x-shockwave-flash' width='800' height='212'><param name='movie' value='images/bnrs/HigherThroughputRO.swf'><param name='loop' value='flase'><param name='quality' value='high'></object>"
===========================
Thanks much
KB
It's the one in my 1st post - http://www.enhancedwireless.net/index.html
only problem is there are 7 banners in the random array so you'll have to refresh until you get the banner with 3 devices which says "Higher Throughput, Lower Cost, Greater Coverage".
Thanks much
KB
Well, I am now trying the adobe active content update routine but it's not working either.
So I published the files from Flash 8 professional selecting Active Content Update HTTP, chose the Apply Active Content Update from Commands, placed the swf, html and AC_RunActiveContent.js files in the same folder, but still doesn't work in IE or Opera.
Thoughts?
KB
CyanBlue
08-08-2007, 02:29 PM
I was meaning to check the site when I get home last night but was not able to...
I do not have IE7 nor Opera right at the moment... But my IE6 does not give me that error message... Can you check with IE6??? The reason why I am asking is because you should be seeing the same ActiveX message with IE6 and IE7, and my IE6 does not show me that message...
Thanks for your help and interest in this - yep, just tried IE 6 and it also shows the "click to activate" etc, tool tip when you mouseover any swf banner on the home page. If you look at the js code on this home page, maybe there's a conflict going on, because of the random array or something...interestingly, on these pages, their swf banners work without giving the IE 6/7 Opera "click to activate" notice...
http://www.enhancedwireless.net/Company/team.shtml
http://www.enhancedwireless.net/Technology/Glossary.shtml
Wonder?
KB
CyanBlue
08-08-2007, 06:31 PM
I must be really special... I don't see that message at all... :(
I'll check back with IE7 when I get home tonight...
OK, great...of course, in order to see the message your mouse has to remain idle over the banner for a couple of seconds.
KB
CyanBlue
08-08-2007, 06:38 PM
Yup... I've seen that message more than I wanted... ;)
You might also want to test that on some other machines...
atomic
08-08-2007, 07:04 PM
But where on the home page's .html are you actually using the AC_FL_RunContent bit , to embed these ads in the innerHTML?
Shouldn't it be included in the init() function?
Good thought - not being a js expert myself, how would I apply your suggestion?
Also, Someone (whom I've been trying to reach for hours to clarify but can't) posted this code in an Opera forum but only said to put it in an external flash file...but which one... and where? The flash html or the AC_RunActiveContent.js or something else? And where in the code exactly? I need assistance please.
Thanks
KB
=========================
function fix_objs(){
for(var k=0,os=document.getElementsByTagName('object');k<o.length;k++)
os[k].outerHTML = os[k].outerHTML;
for(var k=0,os=document.getElementsByTagName('embed');k<o.length;k++)
os[k].outerHTML = os[k].outerHTML;
}
if(window.addEventListener)addEventListener('load' ,fix_objs,false);
else attachEvent('onload',fix_objs);
====================
KB
(PS. An expert is just someone who gets things wrong for more sophisticated reasons.)
CyanBlue
08-10-2007, 01:44 AM
I finally had time to visit the site from home, and I don't see the issue with my IE7... Maybe you have fixed the problem already???
atomic
08-10-2007, 03:23 AM
Nah! I'm not on 7, but still on 6, and I do see it...
Thing is you need to refresh the page until one of the banners is a .swf. Out of the 7 random banners, 3 are in fact .jpgs, so you wouldn't see the Click to activate bit on those, but you surely see it if you fall on one of the .swfs...
As I posted above, he's refreshing the inner .html (see how the the rest of the page moves down when the banner opens up...), but not using the swfobject or that other embedding bit, in that case, so obviously the Click to activate problem is still there...
And to use the swfobject in the refreshing & expanding of the .html within his init function, is a bit over my head, frankly!
You are correct, Atomic, I've not fixed it - so yes, on Opera (PC/MAC) and IE 6/7 the problem is still there. I've no idea the fix - is there a benefit for me to make one container.swf, and place all 7 files within that? Both the jpgs and the swfs? - load them randomly (in Flash)? But then how do I get rid of that Click to activate problem?
Or would I then not have the problem? These swf banners work no problem on Opea/IE 6 and 7
http://www.enhancedwireless.net/Company/team.shtml
http://www.enhancedwireless.net/Tech...Glossary.shtml
Thoughts?
KB
atomic
08-10-2007, 03:48 AM
Might as well (since that banner height is not changing from one to the other...) to just add another .swf (with randomly loading .swfs or .jpgs), and just use the swfObject to embed it (or that other Adobe embedding bit you've been using, and which I dislike...) as you're embedding all other .swfs on those pages...
I don't like that inner html resizing bit anyways... Looks bad! Since there's a delay in the resizing, it looks as if you've suddenly realized you've forgotten the banners, and decide to open it up, while the rest of the page is already fully or halfway loaded...
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.