|
-
fix IE/Opera swf activation issue?
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've 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
-
Ryan Thomson
-
Thanks for reply - I have been trying to get this swfobject.js (as per your link) to work for about 3 hours now - giving up - I'm going to try to use Adobe's AC_RunActiveContent.js and see if that works.
KB
Last edited by kbeeson; 08-07-2007 at 07:27 PM.
-
Ryan Thomson
Yup that one works well too if you get stuck feel free to post a link to what you have so far, im sure i could help ya 
ps in CS3 the fix is set as soon as you publish.. too bad they don't provide some backwards compatible method for older versions, it is a pain in the butt
-
Well, I've tried this and no go still...http://www.enhancedwireless.net
There are 7 banners in random array so you may have to refresh till you get the one I'm working on, "Higher Throughput, Lower Cost, Greater Coverage" with 4 wireless devices on the banner.
So I published the files from Flash 8 professional selecting Active Content Update HTTP, chose the Apply Active Content Update from Commands, place the swf, html and AC_RunActiveContent.js files in the same folder, but stil doesn't work in IE or Opera.
Thoughts?
KB
-
If you look at the js code on that home page, maybe there's a conflict going on, because of the random array or something? Is this something to do with the "init() function"? I don't know js well, so if anyone has a suggestion could you be specific as to what, where...thanks much.
Interestingly, on these pages below, 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/Tech...Glossary.shtml
KB
-
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);
Last edited by kbeeson; 08-08-2007 at 07:52 PM.
-
Ryan Thomson
I would try loading a blank swf until you get it working, that way you don't have to troubleshoot two things at once.
Also, if it does have something to do with the way your loading the random banners you could try putting the one that's not flash inside a flash file, then loading each randomly from a container swf, that way it's always the same swf file loading on the page (container.swf), then it can load your banners. might save some hassle.
-
Interesting thought about the container.swf...but I'm still trying to get my head around this js issue, I'm not even sure how to do your container idea, though it does sound useful.
-
Ryan Thomson
you would open flash, make a movie the same dimensions as your banner, then on the first frame put:
Code:
var bannerArray:Array = ["banner1.swf", "banner2.swf", "banner3.swf", "banner4.swf", "banner5.swf"];
var banner:String = bannerArray[random(5)];
trace(banner);
this.loadMovie(banner);
where banner1.swf would be the name of one of your banners. If you wanted more or less banners add them to the list and change 5 to the number of banners.
Voila! random banners oh and you could load images the same way
-
I'll probably try this - thanks for the code and time...any draw backs using Flash instead of js to do this random bit? So I would just need to turn my jpg (non-swf) banners into swf, correct? Then I just put my 7 banners in the same image folder as the container.swf? Will this get rid of the activate issue - sounds like it might.
KB
-
Ryan Thomson
no drawbacks that i know of, the jpeg can be loaded as is as long as it's the same dimensions as the container, you can put the images wherever as long as you include the path in the filename (_banners/yourbanner.swf or _banners/yourbanner.jpg). This won't get rid of the activate issue, but it will hopefully make it easier to deal with.
good luck!
-
Thanks for all your help in this...
KB
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|