flase不能在div里置顶,求助
代码如下
<div class="adpic">
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
<td><script type="text/javascript">
//imgLink3="";
var focus_width=760
var focus_height=240
var text_height=0
var swf_height = focus_height+text_height
var pics="../img/index/d01.jpg|../img/index/d02.jpg|../img/index/d03.jpg"
var links="1|2|3"
var texts="http://www.baidu.com|http://www.baidu.com|http://www.baidu.com"
var flashCode = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/hotdeploy/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">';
flashCode = flashCode + '<param name="allowScriptAccess" value="sameDomain"/><param name="movie" value="include/focus.swf"/><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0"/>';
flashCode = flashCode + '<param name="menu" value="false"/><param name="wmode" value="transparent"/>';
flashCode = flashCode + '<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'"/>';
flashCode = flashCode + '<embed src="include/focus.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ focus_width +'" height="'+ swf_height +'" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" wmode="transparent"/></embed>';
flashCode = flashCode + '</object>';
document.write(flashCode)
</script>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/hotdeploy/flash/swflash.cab#version=6,0,0,0" width="760" height="240" align="top">
<param name="allowScriptAccess" value="sameDomain"/>
<param name="movie" value="../img/index/focus.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#F0F0F0" />
<param name="menu" value="false" />
<param name="wmode" value="transparent" />
<param name="FlashVars" value="pics=../img/index/d01.jpg|../img/index/d02.jpg|../img/index/d03.jpg&links=1|2|3&texts=http://www.baidu.com|http://www.baidu.com|http://www.baidu.com&borderwidth=760&borderheight=240&textheight=0" />
<embed src="../img/index/focus.swf" width="760" height="240" align="top" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" flashvars="pics=../img/index/d01.jpg|../img/index/d02.jpg|../img/index/d03.jpg&links=1|2|3&texts=http://www.baidu.com|http://www.baidu.com|http://www.baidu.com&borderwidth=760&borderheight=240&textheight=0" wmode="transparent"></embed>
</object></td>
</tr>
</tbody>
</table>
</div>
运行后的样子
删除flash后,下面的又上来了,为什么呢?先谢谢各位帮忙看看
[解决办法]
<div class="adpic">
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
<td valign="top"><script type="text/javascript">
//imgLink3="";
var focus_width=760
var focus_height=240
var text_height=0
var swf_height = focus_height+text_height
var pics="../img/index/d01.jpg|../img/index/d02.jpg|../img/index/d03.jpg"
var links="1|2|3"
var texts="http://www.baidu.com|http://www.baidu.com|http://www.baidu.com"
var flashCode = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/hotdeploy/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">';
flashCode = flashCode + '<param name="allowScriptAccess" value="sameDomain"/><param name="movie" value="include/focus.swf"/><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0"/>';
flashCode = flashCode + '<param name="menu" value="false"/><param name="wmode" value="transparent"/>';
flashCode = flashCode + '<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'"/>';
flashCode = flashCode + '<embed src="include/focus.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ focus_width +'" height="'+ swf_height +'" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" wmode="transparent"/></embed>';
flashCode = flashCode + '</object>';
document.write(flashCode)
</script>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/hotdeploy/flash/swflash.cab#version=6,0,0,0" width="760" height="240" align="top">
<param name="allowScriptAccess" value="sameDomain"/>
<param name="movie" value="../img/index/focus.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#F0F0F0" />
<param name="menu" value="false" />
<param name="wmode" value="transparent" />
<param name="FlashVars" value="pics=../img/index/d01.jpg|../img/index/d02.jpg|../img/index/d03.jpg&links=1|2|3&texts=http://www.baidu.com|http://www.baidu.com|http://www.baidu.com&borderwidth=760&borderheight=240&textheight=0" />
<embed src="../img/index/focus.swf" width="760" height="240" align="top" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" flashvars="pics=../img/index/d01.jpg|../img/index/d02.jpg|../img/index/d03.jpg&links=1|2|3&texts=http://www.baidu.com|http://www.baidu.com|http://www.baidu.com&borderwidth=760&borderheight=240&textheight=0" wmode="transparent"></embed>
</object></td>
</tr>
</tbody>
</table>
</div>
这样?