本帖最后由 edvon 于 2010-8-11 08:50 编辑
比较了首页和内页首页多了一个1,在底部,不知道从哪里冒出来的,内页就没有
所以怀疑是news_index的源码导致的,因为我的首页是使用的news_index- <?exit?>
- <!--{template header}-->
- <!--{eval $ads = getad('system', $channel, '1'); }-->
- <!--{if !empty($ads['pageheadad']) }-->
- <div class="ad_header">$ads[pageheadad]</div>
- <!--{/if}-->
- </div><!--header end-->
- <div id="nav">
- <div class="main_nav">
- <ul>
- <!--{if empty($_SCONFIG['defaultchannel'])}-->
- <li><a href="{S_URL}/">首页</a></li>
- <!--{/if}-->
- <!--{loop $channels['menus'] $key $value}-->
- <li <!--{if $key == $channel }--> class="current"<!--{/if}-->><a href="$value[url]">$value[name]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- <!--{block name="category" parameter="type/$channel/isroot/1/order/c.displayorder/limit/0,100/cachetime/80800/cachename/category"}-->
- <ul class="ext_nav clearfix">
- <!--{eval $dot = '|'}-->
- <!--{eval $total = count($_SBLOCK['category'])}-->
- <!--{eval $i = 1;}-->
- <!--{loop $_SBLOCK['category'] $value}-->
- <li><a href="$value[url]">$value[name]</a><!--{if $total != $i}--> $dot <!--{/if}--></li>
- <!--{eval $i++;}-->
- <!--{/loop}-->
- </ul>
- </div><!--nav end-->
- <!--51nb自拟定468*60广告开始-->
- <div>#getad("user","13")#</div><!--4个468*60的图片广告-->
- <!--51nb自拟定468*60广告结束-->
- <!--51nb新品推荐7张图调用开始-->
- <!--51nb新品推荐7张图调用结束-->
- <!--{block name="spacenews" parameter="type/$channel/haveattach/2/showattach/1/showdetail/1/order/i.dateline DESC/limit/0,11/subjectlen/48/subjectdot/0/messagelen/170/messagedot/1/cachetime/11930/cachename/picnews"}-->
- <div class="column">
- <div class="col1">
- <div class="clearfix">
- <div class="col3">
-
- <div id="focus_turn">
- <!--{if !empty($_SBLOCK['picnews'])}-->
- <!--{eval $picnews = @array_slice($_SBLOCK['picnews'], 0, 5);}-->
- <ul id="focus_pic">
- <!--{eval $j = 0}-->
- <!--{loop $picnews $pkey $pvalue}-->
- <!--{eval $pcurrent = ($j == 0 ? 'current' : 'normal');}-->
- <li class="$pcurrent"><a href="#action/viewnews/itemid/$pvalue[itemid]#"><img src="$pvalue['a_filepath']" alt="$pvalue[subject]" /></a></li>
- <!--{eval $j++}-->
- <!--{/loop}-->
- </ul>
- <ul id="focus_tx">
- <!--{eval $i = 0}-->
- <!--{loop $picnews $key $value}-->
- <!--{eval $current = ($i == 0 ? 'current' : 'normal');}-->
- <li class="$current"><a href="$value[url]">$value[subject]</a></li>
- <!--{eval $i++}-->
- <!--{/loop}-->
- </ul>
- <div id="focus_opacity"></div>
- <!--{/if}-->
- </div><!--focus_turn end-->
-
- </div><!--col3 end-->
- <!--最新资讯-->
- <!--{block name="spacenews" parameter="type/$channel/order/i.dateline DESC/limit/0,3/cachetime/85400/subjectlen/40/subjectdot/0/showdetail/1/messagelen/150/messagedot/1/cachename/newnews1"}-->
- <div class="col4" id="hot_news">
- <h3>最新资讯</h3>
- <!--{loop $_SBLOCK['newnews1'] $value}-->
- <div class="hot_news_list">
- <h4><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></h4>
- <p>$value[message]</p>
- </div>
- <!--{/loop}-->
- </div><!--col4 end-->
- </div>
- <!--图文资讯显示-->
- <!--{if !empty($_SBLOCK['picnews'])}-->
- <!--{eval $picnews2 = @array_slice($_SBLOCK['picnews'], 5, 11);}-->
- <!--{/if}-->
- <div class="global_module margin_bot10">
- <div class="global_module1_caption"><h3>图文资讯</h3></div>
- <ul class="globalnews_piclist clearfix">
- <!--{loop $picnews2 $value}-->
- <li><a href="$value[url]"><img src="$value[a_thumbpath]" alt="$value[subjectall]"/></a><span><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></span></li>
- <!--{/loop}-->
- </ul>
- </div>
- <!--首页自拟定google广告开始-->
- <script type="text/javascript"><!--
- google_ad_client = "pub-6694527111446837";
- google_ad_format = "js_sdo";
- google_color_bg = "FFFFCC";
- google_cts_mode ="hq";
- google_num_cts = "6";
- google_searchbox_width = 215;
- google_searchbox_height = 26;
- google_link_target = 2;
- google_ad_channel = "5386495894";
- google_logo_pos = "left";
- google_rs_pos = "right";
- google_ad_height = 35;
- google_ad_width = 690;
- //-->
- </script>
- <script type="text/javascript"
- src="http://pagead2.googlesyndication.com/pagead/show_sdo.js">
- </script>
- <!--首页自拟定google广告结束-->
- <!--{if !empty($ads['pagecenterad'])}-->
- <div class="ad_pagebody">$ads[pagecenterad]</div>
- <!--{/if}-->
- <div class="catalog_list clearfix">
- <!--各分类最新资讯列表-->
- <!--{eval $i = 1;}-->
- <!--{loop $_SBLOCK['category'] $ckey $cat}-->
- <!--{eval $cachetime = 1800+30*$ckey;}-->
-
- <!--{if ($i % 2) == 0}-->
- <div class="global_module box_r">
- <!--{else}-->
- <div class="global_module">
- <!--{/if}-->
-
- <div class="global_module1_caption"><h3>$cat[name]</h3><a href="#action/category/catid/$cat[catid]#" class="more">更多>></a></div>
-
- <!--{block name="spacenews" parameter="catid/$cat[subcatid]/haveattach/2/order/i.dateline DESC/limit/0,3/cachetime/$cachetime/subjectlen/36/cachename/newslistpic"}-->
- <ul style="list-style-type:none;">
- <!--{loop $_SBLOCK['newslistpic'] $value}-->
- <li style="float:left; padding:5px 15px 5px 15px"><a href="$value[url]" title="$value[subjectall]" target="_blank"><img src="$value[a_thumbpath]" alt="$value[subjectall]" width="80" height="75" /></a>
- </li>
- <!--{/loop}-->
- </ul>
-
- <ul class="global_tx_list1">
- <!--{block name="spacenews" parameter="catid/$cat[subcatid]/order/i.dateline DESC/limit/0,6/cachetime/$cachetime/subjectlen/36/subjectdot/0/cachename/newslist"}-->
- <!--{loop $_SBLOCK['newslist'] $value}-->
- <li><span class="box_r">#date('m-d', $value['dateline'])#</span><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- <!--{eval $i++;}-->
- <!--{/loop}-->
- </div>
- </div><!--col1 end-->
- <div class="col2">
- <div id="user_login">
- <script src="{S_URL}/batch.panel.php?rand={eval echo rand(1, 999999)}" type="text/javascript" language="javascript"></script>
- </div><!--user_login end-->
- <!--{block name="tag" parameter="order/spacenewsnum DESC/limit/0,30/cachetime/88008/cachename/hottag/tpl/data"}-->
- <div class="global_module margin_bot10 bg_fff">
- <div class="global_module2_caption"><h3>热门标签</h3></div>
- <ul class="tag_list clearfix">
- <!--{loop $_SBLOCK['hottag'] $value}-->
- <li><a href="$value[url]">$value[tagname]</a>($value[spacenewsnum])</li>
- <!--{/loop}-->
- </ul>
- </div>
- <!--网络广告资源-->
- <div class="global_module margin_bot10 bg_fff">
- <div class="global_module2_caption"><h3>赞助商连接</h3></div>
- <div class="ad_sidebar">
- <div>#getad("user","14")#</div><!--首页右侧赞助商-->
- </div>
- <!--网络广告资源-->
- </div>
- <!--最新评论资讯显示-->
- <!--{block name="spacenews" parameter="type/$channel/order/i.lastpost DESC/limit/0,15/subjectlen/26/subjectdot/0/cachetime/7500/cachename/newnews"}-->
- <div class="global_module margin_bot10 bg_fff">
- <div class="global_module2_caption"><h3>最新评论</h3></div>
- <ul class="global_tx_list3">
- <!--{loop $_SBLOCK['newnews'] $value}-->
- <li><span class="box_r">#date('m-d', $value['lastpost'])#</span><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- <!--网络广告资源-->
- <div class="global_module margin_bot10 bg_fff">
- <div class="global_module2_caption"><h3>网络资源</h3></div>
- <div class="ad_sidebar">
- <div>#getad("user","16")#</div><!--首页网络资源-->
- </div>
- <!--网络广告资源-->
- </div>
- <!--月度评论热点-->
- <!--{block name="spacenews" parameter="type/$channel/lastpost/2592000/order/i.replynum DESC/limit/0,15/cachetime/75400/subjectlen/26/subjectdot/0/cachename/replyhot"}-->
- <div class="global_module margin_bot10 bg_fff">
- <div class="global_module2_caption"><h3>月度评论</h3></div>
- <ul class="global_tx_list3">
- <!--{loop $_SBLOCK['replyhot'] $value}-->
- <li><span class="box_r">$value[replynum]</span><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- </div><!--col2 end-->
- </div><!--column end-->
- <!--{if !empty($ads['pagefootad'])}-->
- <div class="ad_pagebody">$ads[pagefootad]</div>
- <!--{/if}-->
- <!--{if !empty($ads['pagemovead']) || !empty($ads['pageoutad'])}-->
- <!--{if !empty($ads['pagemovead'])}-->
- <div id="coupleBannerAdv" style="z-index: 10; position: absolute; width:100px;left:10px;top:10px;display:none">
- <div style="position: absolute; left: 6px; top: 6px;">
- $ads[pagemovead]
- <br />
- <img src="{S_URL}/images/base/advclose.gif">
- </div>
- <div style="position: absolute; right: 6px; top: 6px;">
- $ads[pagemovead]
- <br />
- <img src="{S_URL}/images/base/advclose.gif">
- </div>
- </div>
- <!--{/if}-->
- <!--{if !empty($ads['pageoutad'])}-->
- <div id="floatAdv" style="z-index: 10; position: absolute; width:100px;left:10px;top:10px;display:none">
- <div id="floatFloor" style="position: absolute; right: 6px; bottom:-700px">
- $ads[pageoutad]
- </div>
- </div>
- <!--{/if}-->
- <script type="text/javascript" src="{S_URL}/include/js/floatadv.js"></script>
- <script type="text/javascript">
- <!--{if !empty($ads['pageoutad'])}-->
- var lengthobj = getWindowSize();
- lsfloatdiv('floatAdv', 0, 0, 'floatFloor' , -lengthobj.winHeight).floatIt();
- <!--{/if}-->
- <!--{if !empty($ads['pagemovead'])}-->
- lsfloatdiv('coupleBannerAdv', 0, 0, '', 0).floatIt();
- <!--{/if}-->
- </script>
- <!--{/if}-->
- <!--{if !empty($ads['pageoutindex'])}-->
- $ads[pageoutindex]
- <!--{/if}-->
- <!--51nb.la友情链接自拟定开始-->
- <!--{block name="friendlink" parameter="order/displayorder/limit/0,99cachetime/11600/namelen/32/cachename/friendlink/tpl/data"}-->
- <div id="links">
- <h3>友情链接|要求PR≥5的IT相关网站|欢迎各大网站、媒体、软件开发商洽谈合作|部分链接移动到<a href="http://bbs.51nb.la/">上网本论坛</a> </h3>
- <!--{eval $imglink=$txtlink="";}-->
- <!--{loop $_SBLOCK['friendlink'] $value}-->
- <!--{if $value[logo]}-->
- <!--{eval $imglink .= "<a href="".$value[url]."" target="_blank"><img src="".$value[logo]."" alt="".$value[description]."" border="0" /></a>\n";}-->
- <!--{else}-->
- <!--{eval $txtlink .= "<li><a href="".$value[url]."" title="".$value[description]."" target="_blank">".$value[name]."</a></li>\n";}-->
- <!--{/if}-->
- <!--{/loop}-->
- <!--{if !empty($imglink)}-->
- <div class="links_img">
- $imglink
- </div>
- <!--{/if}-->
- <!--{if !empty($txtlink)}-->
- <div class="links_tx">
- <ul class="s_clear">
- $txtlink
- </ul>
- </div>
- <!--{/if}-->
- </div>
- <!--51nb.la友情链接自拟定结束-->
- <!--{template footer}-->
复制代码
查询了首页页面www.51nb.la最下面部分的源代码- <!--51nb.la友情链接自拟定结束-->
- <div id="footer">
- <a href="http://www.51nb.la/index.php">51nbIT资讯网</a> |
- <a href="http://www.51nb.la/" target="_blank">笔记本</a> |
- <a href="http://www.51nb.la/" target="_blank">上网本</a> |
- <a href="http://www.51nb.la/" target="_blank">山寨本</a> |
- <a href="http://bbs.51nb.la" target="_blank">交流论坛</a> |
- <a href="http://www.51nb.la/action-site-type-ggfh.html">广告服务</a> |
- <a href="http://www.51nb.la/action-site-type-gywm.html">关于我们</a> |
- <a href="http://www.itlaw.com.cn/" target="_blank">法律顾问</a> |
- <a href="http://www.51nb.la/action-site-type-link.html">友情链接</a> |
- <a href="http://www.51nb.la/action-site-type-txwm.html">联系我们</a> |
- <script src="http://s7.cnzz.com/stat.php?id=980587&web_id=980587" language="JavaScript"></script> |
- <a href="http://www.miibeian.gov.cn" target="_blank">京ICP备10009289号</a><br />Powered by <a href="http://www.supesite.com" target="_blank">SupeSite</a> Copyright©2008-2010 51nb.la All rights reserved. <a href="http://www.51nb.la" target="_blank">51nbIT资讯网</a> 版权所有
- <!--请保留版权信息,尊重作者劳动!如必须删除请添加个友情连接,谢谢! -->
- <body>
- <div align="center">
- <p><font color="#333333">版权声明:请在转载时注明出处;如果您发现有任何侵犯您权益的情况,请立即和我们联系,我们会及时作相关处理。<br>
- 北京市崇文区永外大街128号万朋商城3F-21 服务热线:010-51076493 | 会员交流QQ群83069039 </font></p>
- LOGO及图片设计:<a href="http://www.zhmydesign.com/" target="_blank">忠華設計</a>
- <p></p>
- </p>
- </body>
- </div><!--footer end-->
- </body>
- </html>
- 1
复制代码 现在不知道怎么解决 |