霸道王爷宠萌妃下载:flash如何调用JavaScript
来源:百度文库 编辑:中科新闻网 时间:2024/07/05 17:45:20
如果想在页面中flash被点击时调用JavaScript:
document.write("<img src='AD_Stat.jsp?id=snow&BTN=6&STN=1&AD=2);
如何实现呢?
曾试用:
在flash中代码:
on(press){
fscommand("flash_action")
}
在页面中:
<OBJECT
CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="500" HEIGHT="500" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab";
ID=action_movie>
<PARAM NAME="MOVIE" VALUE="ad.files/flash_action.swf">
</OBJECT>
及:
<script LANGUAGE="Javascript">
function action_movie_DoFSCommand(command) {
if (command == "flash_action") {
document.write("<img src='AD_Stat.jsp?id=snow&BTN=6&STN=1&AD=2&Referer="+escape(top.document.referrer)+"' border=0 width=0 height=0 s=display:none>");
}
}
</script>
document.write("<img src='AD_Stat.jsp?id=snow&BTN=6&STN=1&AD=2);
如何实现呢?
曾试用:
在flash中代码:
on(press){
fscommand("flash_action")
}
在页面中:
<OBJECT
CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="500" HEIGHT="500" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab";
ID=action_movie>
<PARAM NAME="MOVIE" VALUE="ad.files/flash_action.swf">
</OBJECT>
及:
<script LANGUAGE="Javascript">
function action_movie_DoFSCommand(command) {
if (command == "flash_action") {
document.write("<img src='AD_Stat.jsp?id=snow&BTN=6&STN=1&AD=2&Referer="+escape(top.document.referrer)+"' border=0 width=0 height=0 s=display:none>");
}
}
</script>
这个问题我也正在解决,帮不了你对不起0.0