New in JavaScript 1.6

  • 版本网址缩略名: JavaScript/New_in_JavaScript/1.6
  • 版本标题: New in JavaScript 1.6
  • 版本 id: 162110
  • 创建于:
  • 创建者: Madstorm
  • 是否是当前版本?
  • 评论

修订内容

function showflash(flashsrc,widthpx,heightpx) {

var fStr = ; fStr += ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" height="'+ heightpx +'" width="'+ widthpx +'">'); 
</object>

fStr += ('<param name="movie" value="'+ flashsrc +'">'); fStr += ('<param name="quality" value="high">'); fStr += ('<param name="menu" value="false">'); fStr += ('<param name="wmode" value="transparent">'); fStr += ('<embed src="'+ flashsrc +'" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ widthpx +'" height="'+ heightpx +'">'); fStr += ('</embed>'); fStr += (''); document.write(fStr); };

修订版来源

<p>function showflash(flashsrc,widthpx,heightpx)
{
</p>
<pre class="eval">var fStr = <i>; fStr += ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" height="'+ heightpx +'" width="'+ widthpx +'">'); 
</object></i></pre>
<p>fStr += ('&lt;param name="movie" value="'+ flashsrc +'"&gt;'); 
fStr += ('&lt;param name="quality" value="high"&gt;'); 
fStr += ('&lt;param name="menu" value="false"&gt;'); 
fStr += ('&lt;param name="wmode" value="transparent"&gt;'); 
fStr += ('&lt;embed src="'+ flashsrc +'" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ widthpx +'" height="'+ heightpx +'"&gt;');
fStr += ('&lt;/embed&gt;');
fStr += (''); 
document.write(fStr);
};
</p>
恢复到这个版本