这段js不是多次一举吗。散分

2004922 2004-10-26 02:14:26
<script type="text/javascript">
<!--
if ((!document.images && navigator.userAgent.indexOf('Mozilla/2.') >= 0) || (navigator.userAgent.indexOf("WebTV") >= 0))
{
document.write('<a href="http://ad.doubleclick.net/jump/ecn.rbi/;type=cegbanner;pos=1;lay=webzine;sz=468x60;ptile=1;ord=1098071969?">');
document.write('<img src="http://ad.doubleclick.net/ad/ecn.rbi/;type=cegbanner;pos=1;lay=webzine;sz=468x60;ptile=1;ord=1098071969?" width="468" height="60" border="0" alt="ad"><\/a>');
}
//-->
</script>
<noscript>
<!-- for non JavaScript browsers and Netscape 2.x -->
<a href="http://ad.doubleclick.net/jump/ecn.rbi/;type=cegbanner;pos=1;lay=webzine;sz=468x60;ptile=1;ord=1098071969?">
<img src="http://ad.doubleclick.net/ad/ecn.rbi/;type=cegbanner;pos=1;lay=webzine;sz=468x60;ptile=1;ord=1098071969?" width="468" height="60" border="0" alt="ad">
</a>
</noscript>
...全文
165 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
2004922 2004-10-30
  • 打赏
  • 举报
回复
别怪我没散分,你们都没看清问题。
是是非非 2004-10-26
  • 打赏
  • 举报
回复
接分
2004922 2004-10-26
  • 打赏
  • 举报
回复
就这样散了,没人说两句了吗
张海霖 2004-10-26
  • 打赏
  • 举报
回复
Mozilla为什么要用Javascript我也不懂
2004922 2004-10-26
  • 打赏
  • 举报
回复
<a href="http://ad.doubleclick.net/jump/ecn.rbi/;type=cegbanner;pos=1;lay=webzine;sz=468x60;ptile=1;ord=1098071969?">
<img src="http://ad.doubleclick.net/ad/ecn.rbi/;type=cegbanner;pos=1;lay=webzine;sz=468x60;ptile=1;ord=1098071969?" width="468" height="60" border="0" alt="ad">
</a>
其实这样就行了,花蛇添足。
梅雪香 2004-10-26
  • 打赏
  • 举报
回复
...回答完毕
ttyp 2004-10-26
  • 打赏
  • 举报
回复
不是
<script type="text/javascript">
<!--
if ((!document.images && navigator.userAgent.indexOf('Mozilla/2.') >= 0) || (navigator.userAgent.indexOf("WebTV") >= 0))
{
document.write('<a href="http://ad.doubleclick.net/jump/ecn.rbi/;type=cegbanner;pos=1;lay=webzine;sz=468x60;ptile=1;ord=1098071969?">');
document.write('<img src="http://ad.doubleclick.net/ad/ecn.rbi/;type=cegbanner;pos=1;lay=webzine;sz=468x60;ptile=1;ord=1098071969?" width="468" height="60" border="0" alt="ad"><\/a>');
}
//-->
</script>

是考虑Mozilla浏览器的

<noscript>
<!-- for non JavaScript browsers and Netscape 2.x -->
<a href="http://ad.doubleclick.net/jump/ecn.rbi/;type=cegbanner;pos=1;lay=webzine;sz=468x60;ptile=1;ord=1098071969?">
<img src="http://ad.doubleclick.net/ad/ecn.rbi/;type=cegbanner;pos=1;lay=webzine;sz=468x60;ptile=1;ord=1098071969?" width="468" height="60" border="0" alt="ad">
</a>
</noscript>

是浏览器不支持脚本时起作用

87,996

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧