当前位置: 代码迷 >> HTML/CSS >> flase不能在div里置顶
  详细解决方案

flase不能在div里置顶

热度:288   发布时间:2012-05-20 16:03:12.0
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&amp;links=1|2|3&amp;texts=http://www.baidu.com|http://www.baidu.com|http://www.baidu.com&amp;borderwidth=760&amp;borderheight=240&amp;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&amp;links=1|2|3&amp;texts=http://www.baidu.com|http://www.baidu.com|http://www.baidu.com&amp;borderwidth=760&amp;borderheight=240&amp;textheight=0" wmode="transparent"></embed>