首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

JS代码冲突,求高手帮忙解决方案

2012-03-27 
JS代码冲突,求高手帮忙这个是焦点图的!--#include fileinc/head1.asp--!DOCTYPE html PUBLIC -//W3

JS代码冲突,求高手帮忙
这个是焦点图的
<!--#include file="inc/head1.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>flash</title>
<style type="text/css">
<!--
html{ margin:0; padding:0; background:#000;}
body{ margin:0; padding:0; background:#000; }
-->
</style>
</head>

<body>

<div>
<script type="text/javascript">
  document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="480" height="281">');
  document.write('<param name="movie" value="flash.swf" />');
  document.write('<param name="quality" value="high" />');
  document.write('<param name="menu" value="false" />');
  document.write('<param name="wmode" value="transparent" />');
  document.write('<embed src="flash.swf" wmode="opaque" menu="false" quality="high" width="480" height="281" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
  document.write('</object>');
 
setTimeout(function(){


  var config = '4|0xffffff|0xff0000|50|0xffffff|0xff0000|0x000000';
var files="";
 
<%
sql="select top 4 * from Photo where PhotoUrl<>'' and BigClassName='首页大图' and Passed=true order by addtime desc"
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
t=0
do while not rs.eof
if t<rs.recordcount-1 then
%>  
files=files+"<%=GetImg(rs("PhotoUrl"),0)%>|"; 
<%
else
%>  
files=files+"<%=GetImg(rs("PhotoUrl"),0)%>"; 
<%
end if
t=t+1
rs.movenext
loop
rs.close
set rs=nothing
%>
  var links ="";
  var texts ="";
document.write('<div style="top:0; left:0; background:#000; position:absolute;">');
  document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="480" height="283">');
  document.write('<param name="movie" value="focus.swf" />');
  document.write('<param name="quality" value="high" />');
  document.write('<param name="menu" value="false" />');
  document.write('<param name="wmode" value="transparent" />');
  document.write('<param name="FlashVars" value="config='+config+'&bcastr_flie='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'" />');
  document.write('<embed src="focus.swf" wmode="opaque" FlashVars="config='+config+'&bcastr_flie='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'" menu="false" quality="high" width="480" height="283" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');


  document.write('</object>');
  document.write('</div>');



},4300); 
</script>
</div>
</body>
</html>




[解决办法]
代码冲突就一部分一部分删掉试试
[解决办法]
这么多代码真的很难看出来是那里冲突了,你只能把代码删除然后一点一点的加。找到冲突的地方。

热点排行