Is there anyway to get around this. I know sites like Cnet do it but am not sure how to get the flash be automatically activated.
Click to activate this control?
Collapse
X
-
Tags: None
-
When building flash menu's I often see sites that it is required to click on the flash applet to "activate" it. At which point you can use the links. Is there a way to avoid this?Comment
-
http://eksamerica.com/
That site has a menu which requires activation.
Notice that when you hover the menu it does nothing. One click then activates it and the menu comes to life.Comment
-
It works fine for me. I believe this is due to your web browser or certain plugins for it.Originally posted by Christoperahttp://eksamerica.com/
That site has a menu which requires activation.
Notice that when you hover the menu it does nothing. One click then activates it and the menu comes to life.Comment
-
I have no tried FF but it does in in Opera and IE 7. IE even places a box around the control with a hover that says "press spacebar or enter to activate and use this control"Comment
-
-
-
-- Edit by iam_clint : be nice now.Rather than jumping on the guy because you can't answer his question, just keep quiet.
Truth be told, this is just another example of Microsoft designing IE to take certain design elements out of the hands of the web designer. Shortly after this "feature" was introduced, Microsoft and Adobe scrambled to provide designers with ways to override it because there were so many complaints. Most of these complaints came from the owners of sites that were already established and using active content, but were immediately crippled after this release.
Being that users have the choice and ability to manually disable active content any time they want, it seems silly that Microsoft would just mandate that their browser and only their browser would force it. All in all, this is just another example of poorly planned blunder on MS's part.
Anyway, enough with the ranting. I had to search out a solution after several clients requested a way around this craziness.
Here's Adobe's solution, since it has had the best results for me:
http://www.adobe.com/devnet/activeco...devletter.html
-- edit by clint: good review.Comment
-
-
Firstly my apologies for using an Bugmenot account.
I found this page while I was researching for my blogpost via Google. I just wanted to mention that IE and Opera implemented these changes not because they wanted to take power away from web developers, but because they didn't want to be sued by EOLAS.
You can learn more about that here : http://en.wikipedia.org/wiki/Eolas#Browser_Changes
The solution from web developers end has already been mentioned in this thread. If you are a user, you can over ride this behaviour in Opera by using this userjs :http://www.howtocreate.co.uk/operaSt...ktoactivate.js
I would also reccomend that you check out http://www.thefutureoftheweb.com/blo...e-this-controlComment
-
Another option that will work for both IE6/7, and Firefox is to take all of yoru code, and put it into a javascript and call it from there. Here is an example:
HTML CODE:
Goes in your HEAD tags:
[code=html]
<script src="flash_func tions.js" language="JavaS cript" type="text/javascript"></script>
[/code]
Goes into the place you want your flash to appear:
[code=html]
<script language="JavaS cript" type="text/javascript">
call_menu();
</script>
[/code]
JAVASCRIPT CODE (You are basically taking your HTML code, and placing it in between document.write( '');):
[code=javascript]
function call_menu()
{
document.write( '<object classid="clsid: d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macr omedia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,0,0" width="766" height="69">\n' );
document.write( '<param name="allowScri ptAccess" value="sameDoma in" />\n');
document.write( '<param name="movie" value="flash/menu_v7.swf" />\n');
document.write( '<param name="quality" value="high" />\n');
document.write( '<param name="bgcolor" value="#FFFFFF" />\n');
document.write( '<embed src="flash/menu_v7.swf" quality="high" scale="exactfit " bgcolor="#FFFFF F" width="766" height="69" allowScriptAcce ss="sameDomain " type="applicati on/x-shockwave-flash" pluginspage="ht tp://www.macromedia. com/go/getflashplayer" />\n');
document.write( '</object>\n');
}
[/code]Comment
Comment