有个朋友给段去除网页flash虚线的代码
可以提示错误为缺少对象:(红字为缺少对象代码:)
代码如下:
<html>
<head>
<title></title><script language=javascript src=flash.js></script><!--被调用的js文件,flash地址就放在其中-->
</head>
<body><div style="position: absolute; top: 165px; left: 19px; z-index: 1">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" height="100">
<tr>
<td align=center>
<script>leftmenu("ccompany",4,1);</script> <!--为调用的flash在flash.js里面所对应文件-->
</td>
</tr>
</table>
</div>
</body>
</html>
---------------------------
flash.js的写法:(把以下等号内的保存为flash.js文件,其中地址改成你自己的flash所在地址,相对绝对都可以,然后到body里面调用flash.js文件)
======================================
function leftmenu(sectiontype,oDN,tDN ){ 
document.write(’<embed width="753" height="102" src="Flash绝对或相对地址" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" menu="false"></embed>’)

解决方案 »

  1.   

    document.write(’//这里
    </embed>’//和这里的单引号要半角的
    //'半角测试,看csdn会不会是转了:)另外embed的flash只ff支持的哦。马虎搜索
      

  2.   

    测试下哦?embed,IE6,7,8,FF,Chrome,opera,safari都支持哦
      

  3.   

    单引号不能用全角的function leftmenu(sectiontype,oDN,tDN ){ 
        document.write('<embed width="753" height="102" src="/xxxx.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" menu="false"></embed>')
    }