首页 > 学习笔记 > 去除Flash虚框
2007
02-02

去除Flash虚框

<!–
// flashWrite(flash路径,宽度,高度,ID,背景色,变量,是否为背景flash)
function flashWrite(url,w,h,id,bg,vars,win){

  // 开始

var flashStr=
"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
"<param name='allowScriptAccess' value='always' />"+
"<param name='movie' value='"+url+"' />"+
"<param name='FlashVars' value='"+vars+"' />"+
"<param name='wmode' value='"+win+"' />"+
"<param name='menu' value='false' />"+
"<param name='quality' value='high' />"+
"<param name='bgcolor' value='"+bg+"' />"+
"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
"</object>";

  // 输出

document.write(flashStr);
}
–>
<script>flashWrite('top.swf','600','40','TOP','#FFFFFF','','transparent')</script>

最后编辑:
作者:admin
这个作者貌似有点懒,什么都没有留下。

留下一个回复