Quote:
Originally Posted by chrishirst
Put the local location of the installer in the codebase attribute.
|
I do what you suggest
here is my revise code:
Code:
<script type="text/javascript" src="swfobject.js"></script>
<div id="Products_Gallery">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="../../../Documents and Settings/Administrator/My Documents/Windows IE/install_flash_player_10_active_x.exe" width="450" height="375" id="Products_Gallery">
<param name="movie" value="PRODUCTS_GALLERY.swf?variable=varvalue" />
<param name="quality" value="high" />
<param name="wmode" value="transparent"/>
<embed src="PRODUCTS_GALLERY.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="450" height="375" wmode="transparent"></embed>
</object>
</div>
<script type="text/javascript">
var so = new SWFObject("PRODUCTS_GALLERY.swf", "Products_Gallery", "450", "375");
so.addVariable("variable", "varvalue");
so.write("Products_Gallery");
</script>
I change the codebase to the path location of flash.msi but still I got an error 'SWFObject' is undefined
Last edited by newphpcoder; 10-27-2010 at 11:24 PM..
|