js动态改变flash尺寸大小

1 <object id="tt1" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"  
width="1002" height="200">
2 <param name="movie" value="index.swf">
3 <param name="quality" value="high">
4 <embed src="index.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1002" height="200"></embed>
5  </object>
6 <INPUT onclick="setSize()" type="button" value="setSize">
7 <SCRIPT LANGUAGE="JavaScript">
8 <!--
9 function setSize()
10 {
11 document.getElementById("tt1").width=300;
12 document.getElementById("tt1").height=300;
13 }
14 //-->
15   </SCRIPT>

posted on 2010-06-20 21:39  riacool  阅读(2706)  评论(0编辑  收藏  举报

导航