Featured post
html - IE 8 flash not displaying -
i'm using flash in few of websites displaying slideshow. code use in splendor-bg.com :
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="740" height="450" id="tech" align="middle"> <param name="allowscriptaccess" value="samedomain" /> <param name="movie" value="splendor-bg.swf?xml_path=slides.xml" /> <param name="quality" value="high" /> <embed src="splendor-bg.swf?xml_path=slides.xml" quality="high" width="720" height="430" name="tech" align="middle" allowscriptaccess="samedomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>
i can see on computer in internet explorer fine (i must have installed needed, or set ie in way, guess).. not working on quite few other computers i've tested on - see: have idea on how fix this? either message of needs installed should shown user, or in code itself.. appreciated!
i'm not sure problem may in particular code.
however, suggest try swfobject. can download @ http://code.google.com/p/swfobject/
swfobject great way embed flash website , seems work in browsers me.
it's simple use, let's assume have div container id flashcontent:
<div id="flashcontent"> </div>
and javascript do:
<script type="text/javascript"> var flashvars = {}; var params = {allowscriptaccess: "samedomain"}; var attributes = {}; swfobject.embedswf("splendor-bg.swf?xml_path=slides.xml", "flashcontent", "720", "430", "9.0.0", "expressinstall.swf", flashvars, params, attributes); </script>
voila , flash object should embedded on flashcontent div container.
give try , see if works better. can read swfobject documentation @ http://code.google.com/p/swfobject/wiki/documentation
- Get link
- X
- Other Apps
Comments
Post a Comment