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 >

你可能感兴趣的:(Flash)