回 帖 发 新 帖 刷新版面

主题:[讨论]JS文件错误求解,未结束的字符串常量!

近来给我的网站做了几个JS方便更新。结果发现JS文件在首页不提示错误,而在内容页缺老提示:JS文件错误,未结束的字符串常量!!!

document.write ('<P>');
document.write ('  <table borderColor=#cccccc cellSpacing=0 cellPadding=0 bgColor=#ffffff border=0>');
document.write ('    <tr>');
document.write ('      <td><A title=功能强大的网络收藏夹,一秒钟操作就可以轻松实现保存带来的价值、分享带来的快乐 href="javascript:d=document;t=d.selection?(d.selection.type!=\'None\'?d.selection.createRange().text:\'\'):(d.getSelection?d.getSelection():\'\');void(keyit=window.open(\'http://www.365key.com/storeit.aspx?t=\'+escape(d.title)+\'&u=\'+escape(d.location.href)+\'&c=\'+escape(t),\'keyit\',\'scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes\'));keyit.focus();">收藏此页到<FONT color=darkorchid>365K<FONT color=#57c200>e</FONT>y</FONT></A> </td>');
document.write ('      <td><A onclick="window.open(\'http://myweb.cn.yahoo.com/popadd.html?url=\'+encodeURIComponent(document.location.href)+\'&title=\'+encodeURIComponent(document.title), \'Yahoo\',\'scrollbars=yes,width=780,height=550,left=80,top=80,status=yes,resizable=yes\" href="#">收藏到雅虎网摘<SUP>+</SUP></A></td>');
document.write ('      <td><A title="极网摘:文摘|图摘|闪摘|乐摘  http://hot.my.yesky.com" href="javascript:d=document;t=d.selection?(d.selection.type!=\'None\'?d.selection.createRange().text:\'\'):(d.getSelection?d.getSelection():\'\void(yesky=window.open(\'http://hot.my.yesky.com/dp.aspx?t=\'+escape(d.title)+\'&u=\'+escape(d.location.href)+\'&c=\'+escape(t)+\'&st=2\',\'_blank\',\'scrollbars=no,width=400,height=480,left=75,top=20,status=no,resizable=yes\'));yesky.focus();">收藏到天极网摘</A></td>');
document.write ('      <td><A title="收藏到POCO 网摘http://share.poco.cn" href="javascript:d=document;t=d.selection?(d.selection.type!=\'None\'?d.selection.createRange ().text:\'\'):(d.getSelection?d.getSelection():\'\');void(vivi=window.open(\'http://my.poco.cn/fav/storeIt.php?t=\'+escape(d.title)+\'&u=\'+escape(d.location.href)+\'&c=\'+escape(t),\'_blank\',\'scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes\'));"><IMG src="http://share.poco.cn/images/poco_cop.gif" border=0></A></td>');
document.write ('    </tr>');
document.write ('    <tr>');
document.write ('      <td colSpan=4><IFRAME id=baiduframe border=0 marginWidth=0 frameSpacing=0 marginHeight=0 src="http://unstat.baidu.com/bdun.bsc?tn=kliers_pg&cv=0&cid=1065609&csid=226&rkcs=1&bgcr=FFFFFF&ftcr=0000CC&rk=1&bd=0&tbsz=&tbst=&bdas=0" frameBorder=0 width=760 scrolling=no height=30> </IFRAME></td>');
document.write ('    </tr>');
document.write ('  </table>');
document.write ('</P>');


有网页制作高手帮帮看看可以不?

回复列表 (共1个回复)

沙发

代码整理一下再发上来。

我来回复

您尚未登录,请登录后再回复。点此登录或注册