Javascript control on Firefox 2/3 with flash 9
| From: | jencisson at unicoco dot com | Date: | Thu, 29 May 2008 18:46:37 +0000 |
| Subject: | Javascript control on Firefox 2/3 with flash 9 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-274829@lists.php.net to get a copy of this message | ||
my page include some javascript to control the play,rewind..and other functions of the swffile
showEdit.swf, it works in Safari/IE with flash-plugin 8/9 installed but not works in Firefox with
flash plugin 9(would reports obj.play() is not a function, is any one point out what is the problem
or there are techniques i can use?
>>>>>>>the source
>>>>>>>codes>>>>>>>>>>>>>>>>>>
<script>
function show(){
var obj=document.getElements("showEdit");//it works in Firefox
obj.play();//it works in IE,but not in Firefox.
}
</script>
>>>>>>>>>>>>>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
width="202" height="498" id="showEdit">
<param name="movie" value="flash/show_edit.swf" />
<param name="quality" value="high" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="FlashVars" value="userid=rasy" />
<param name="name" value="FlashVars" />
<embed src="flash/show_edit.swf" width="202" height="498"
quality="hight" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" allowscriptAccess="sameDomain"
FlashVars="userid=rasy" name="FlashVars" name="showEdit">
</embed>
</object>
_________________________________________________________________
多个邮箱同步管理,live mail客户端万人抢用中
http://get.live.cn/product/mail.html