如何访问网页中的flash控件的属性和方法?
如何访问网页中的flash控件的属性和方法?
有哪些方法和属性??
问题点数:20、回复次数:4Top
1 楼HueVan(冰与火)回复于 2003-09-04 21:40:52 得分 10
在flashMX里发布成网页,然后你查看源代码,就可以清楚的看见flash对象有什么属性了~~Top
2 楼zuping(臭虫)回复于 2003-09-05 08:47:19 得分 0
如何用js访问Top
3 楼hemeng(hemeng)回复于 2003-09-05 10:31:34 得分 10
JS的INNERHTML的属性Top
4 楼zuping(臭虫)回复于 2003-09-11 10:23:38 得分 0
我自己解决这个问题了,感谢各位的参与,具体解决办法参见
http://zuping.51.net/view/ShowGood.htm
<table width="600" border="0" cellspacing="0" cellpadding="0" align="center" class="zptextn">
<tr>
<td align="center"> </td>
</tr>
<tr>
<td class="zptitle" align="center"><span class="art_title">
<script language="JavaScript">
var index=0;//当前的播放序号
//增加自己的360广告步骤:
//1、申请广告后,记住该广告的链接地址及自己的id
//2、下载相关显示广告图象文件至本地,改名为360_厂商名_文件原名.gif
//3、增加一对vXX和mXX的变量至此js文件,并增加到imgarr和adarr数组中
//4、上传刚才的gif文件到web服务器的misc文件夹中
//addfile\\ShowGood02.swf
var m1="http://www.pconline.com.cn/pcedu/carton/showgood/10209/other/0904xiatui.swf";
var h1=500;
var m2="http://www.pconline.com.cn/pcedu/carton/showgood/10209/other/0904jianggan.swf";
var h2=500;
var m3="http://www.pconline.com.cn/pcedu/carton/showgood/10209/other/0904caochuan.swf";
var h3=500;
var m4="http://www.pconline.com.cn/pcedu/carton/showgood/10209/other/0904gexu.swf";
var h4=500;
var m5="http://www.pconline.com.cn/pcedu/carton/showgood/10209/other/0904sanrang1.swf";
var h5=500;
var m6="http://www.pconline.com.cn/pcedu/carton/showgood/10209/other/0904sanrang2.swf";
var h6=500;
var m7="http://www.pconline.com.cn/pcedu/carton/showgood/10205/pic/20020320162650.swf";
var h7=500;
var m8="http://www.pconline.com.cn/pcedu/carton/showgood/10205/other/20020515_qlzdq_2.swf";
var h8=500;
var m9="http://www.pconline.com.cn/pcedu/carton/showgood/10208/other/0808qianli.swf";
var h9=500;
var m10="http://www.pconline.com.cn/pcedu/carton/showgood/10204/other/20010925164814.swf";
var h10=500;
//vXX和mXX必须成对匹配使用
var swfarr=new Array(m1,m2,m3,m4,m5,m6,m7,m8,m9,m10);
var heightarr= new Array(h1,h2,h3,h4,h5,h6,h7,h8,h9,h10);
function PlayPrev()
{
if (index>0)
{ index=index-1;
FlashPlayer.stopmovie;
FlashPlayer.movie=swfarr[index];
FlashPlayer.height=heightarr[index];
FlashPlayer.start;
// FlashPlayer.resume;
}
}
function PlayNext()
{
if (index<swfarr.length-1)
{ index=index+1;
FlashPlayer.stopmovie;
FlashPlayer.movie=swfarr[index];
FlashPlayer.height=heightarr[index];
FlashPlayer.start;
// FlashPlayer.resume;
}
}
function FullScreenPlay()
{
window.open(FlashPlayer.movie);
}
</script>
三国动画欣赏</span></td>
</tr>
<tr>
<td align="left"><a href="javascript:PlayPrev()">播放上一个</a> <a href="javascript:PlayNext()">播放下一个</a>
<a href="javascript:FullScreenPlay()">全屏播放</a></td>
</tr>
<tr>
<td class="zptext" valign="top" align="center">
<p class="zptextn"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="596" height="500" id="FlashPlayer" name="FlashPlayer" >
<param name=quality value=high><param name="SRC" value="addfile/ShowGood.swf">
<embed src="addfile/ShowGood.swf" quality=high type="application/x-shockwave-flash" width="596" height="500" name="FlashPlayer">
</embed>
</object></p>
</td>
</tr>
<tr>
<td class="zptext" valign="top"> </td>
</tr>
<tr>
<td class="zptext" valign="top" align="right"><a href="javascript:PlayPrev()">播放上一个</a>
<a href="javascript:PlayNext()">播放下一个</a> <a href="javascript:FullScreenPlay()">全屏播放</a></td>
</tr>
</table>
Top




