主题:  想控制FLASH大小,没成功,版主进来看看吧

FATHER FRTFRBABY

职务:普通成员
等级:1
金币:1.0
发贴:178
#12004/9/21 11:43:52
<script language="javascript">
if (window.screen){
  var w = screen.width;
  
  if(w<835){
  document.write("<td align='center' valign='middle'>")
  document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width=720 height=980 align='middle'>")
  document.write("<param name='movie' value='logo_9-15.swf'>")
  document.write("<param name='quality' value='high'>")
document.write("<embed src='logo_9-15.swf' width=720 height=980 align='middle' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed></object></td>")
}
  if(w=835){

  document.write("<td align='center' valign='middle'>")
  document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width=810 height=1102 align='middle'>")
  document.write("<param name='movie' value='logo_9-15.swf'>")
  document.write("<param name='quality' value='high'>")
document.write("<embed src='logo_9-15.swf' width=810 height=1102 align='middle' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed></object></td>")
}
   if(w<900){
    document.write("<td align='center' valign='middle'>")
  document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width=810 height=1102 align='middle'>")
  document.write("<param name='movie' value='logo_9-15.swf'>")
  document.write("<param name='quality' value='high'>")
document.write("<embed src='logo_9-15.swf' width=810 height=1102 align='middle' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed></object></td>")
 if(w>=900){
    document.write("<td align='center' valign='middle'>")
  document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width=900 height=1225 align='middle'>")
  document.write("<param name='movie' value='logo_9-15.swf'>")
  document.write("<param name='quality' value='high'>")
document.write("<embed src='logo_9-15.swf' width=900 height=1225 align='middle' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed></object></td>")
  }

}
</script>

编辑历史:[此帖最近一次被 ridincal 编辑过(编辑时间:2004-09-21 11:51:15)]


FATHER FRTFRBABY

职务:普通成员
等级:1
金币:1.0
发贴:178
#22004/9/21 23:56:34
<script language="javascript">
    <!--
    if (window.screen){
var w = screen.width;

if(w<835){
        document.write('<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="720" height="980">');
        document.write('<param name=movie value="logo_9-15.swf">');
        document.write('<param name="quality" value="high">');
        document.write('<embed src="logo_9-15.swf" quality=high align="middle" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="720" height="980"></embed>');
        document.write('</object>');}
         if(w=835){
        document.write('<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="810" height="1102">');
        document.write('<param name=movie value="logo_9-15.swf">');
        document.write('<param name="quality" value="high">');
        document.write('<embed src="logo_9-15.swf" quality=high align="middle" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="810" height="1102"></embed>');
        document.write('</object>');}
         if(w<900 & w>835){
        document.write('<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="810" height="1102">');
        document.write('<param name=movie value="logo_9-15.swf">');
        document.write('<param name="quality" value="high">');
        document.write('<embed src="logo_9-15.swf" quality=high align="middle" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="810" height="1102"></embed>');
        document.write('</object>');}
         if(w>=900){
        document.write('<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="900" height="1225">');
        document.write('<param name=movie value="logo_9-15.swf">');
        document.write('<param name="quality" value="high">');
        document.write('<embed src="logo_9-15.swf" quality=high align="middle" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="900" height="1225"></embed>');
        document.write('</object>');}
        }
        
    // -->
    </script>
这一成功了!