本帖最后由 万州门户 于 2010-6-28 14:43 编辑
我用采集的页面没错位;如这个页面 http://www.kwz.cc/?action-viewnews-itemid-26990
但是我在后台发的文章右边的广告那一条就这样错位了:如这个页面http://www.kwz.cc/?action-viewnews-itemid-26209
请问怎么解决啊
以下是这个页面的全部代码- <?exit?>
- <!--{template header}-->
- <link rel="stylesheet" type="text/css" href="{S_URL}/templates/$_SCONFIG[template]/css/090716.css" />
- <div id="nowpsn">
- <p id="position">您所在的位置: <a href="{S_URL}">$_SCONFIG[sitename]</a>
- <!--{loop $guidearr $value}-->
- > <a href="$value[url]">$value[name]</a>
- <!--{/loop}--> > 正文</p>
- <div style="width:350px;height:23px; line-height:23px; float:right;margin:2px 1px 0px 0px;">
- <form action="{S_URL}/batch.search.php" method="post">
- <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
- <input type="hidden" name="searchname" id="searchname" value="subject" />
- <select name="searchtxt" id="searchtxt" onChange="changetype();">
- <option value="标题">标题</option>
- <option value="内容">内容</option>
- <option value="作者">作者</option>
- </select>
- <input class="pptx" type="text" value="" name="searchkey" size="26"/>
- <input class="ppsearch" type="submit" value="搜索" name="searchbtn"/>
- </form>
- <script language="javascript">
- function changetype() {
- if($('searchtxt').value == '标题') {
- $('searchname').value = 'subject';
- }else if($('searchtxt').value == '内容') {
- $('searchname').value = 'message';
- }else if($('searchtxt').value == '作者') {
- $('searchname').value = 'author';
- }
- }
- </script>
- </div>
- </div>
- <div id="cntMain">
- <div id="cntL">
- <h1 id="ArticleTit">$news[subject]</h1>
- <span id="ArtFrom">
- <!--{if !empty($news['newsfrom'])}-->来源:<!--{if !empty($news[newsfromurl])}--><a href="$news[newsfromurl]" target="_blank" title="$news[newsfrom]">$news[newsfrom]</a><!--{else}-->$news[newsfrom]<!--{/if}--> <!--{/if}-->
-
- 发布者:<a href="{S_URL}/space.php?uid=$news[uid]&op=news">$news[newsauthor]</a>
- 发表于:#date('Y年n月d日 H:i', $news["dateline"])#
-
- 浏览9{$news[viewnum]}次
- <a href="javascript:void(window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(document.location.href)));" title="分享到QQ空间"><img src="http://www.kwz.cc/gg/qzone_logo.png" alt="" />分享到QQ空间</a>
- </span>
-
- <div id="ArticleCnt">
- <div id="article_body">
- <!--{if !empty($news[custom][name])}-->
- <div id="article_summary">
- <!--{loop $news[custom][key] $ckey $cvalue}-->
- <h6>$news[custom][name]</h6>
- <p>$cvalue[name]:$news[custom][value][$ckey]</p>
- <!--{/loop}-->
- </div>
- <!--{/if}-->
- <div class="ad_article">
- <p>
- <script type='text/javascript' src=' http://cbjs.baidu.com/js/m.js'></script>
- <script type='text/javascript'>
- BAIDU_CLB_addSlot('37871');
- BAIDU_CLB_enableAllSlots();
- </script>
- <script type='text/javascript'>BAIDU_CLB_fillSlot('37871');</script>
- </p>
- <p>
- <script type='text/javascript' src=' http://cbjs.baidu.com/js/m.js'></script>
- <script type='text/javascript'>
- BAIDU_CLB_addSlot('37872');
- BAIDU_CLB_enableAllSlots();
- </script>
- <script type='text/javascript'>BAIDU_CLB_fillSlot('37872');</script></p>
- </div>
- $news[message]
-
-
- <!--{if empty($multipage)}-->
- <!--{loop $news['attacharr'] $attach}-->
- <!--{if $attach['isimage']}-->
- <p class="article_download"><a href="$attach[url]" target="_blank"><img src="$attach[thumbpath]" alt="$attach[subject]" /><span>$attach[subject]</span></a></p>
- <!--{else}-->
- <p class="article_download"><a href="$attach[url]" target="_blank">$attach[filename]</a>(<!--{eval echo formatsize($attach[size]);}-->)</p>
- <!--{/if}-->
- <!--{/loop}-->
- <!--{/if}-->
- </div>
-
- <!--{if !empty($relativetagarr)}-->
- <div id="article_tag">
- <strong>TAG:</strong>
- <!--{loop $relativetagarr $value}-->
- <!--{eval $svalue = rawurlencode($value);}-->
- <a href="#action/tag/tagname/$svalue#">$value</a>
- <!--{/loop}-->
- <!--{/if}-->
- <!--{if $multipage}-->
- $multipage
- <!--{/if}-->
- <head>
- <script type='text/javascript' src='http://cbjs.baidu.com/js/m.js'></script>
- <script type='text/javascript'>
- BAIDU_CLB_addSlot('38273');
- BAIDU_CLB_enableAllSlots();
- </script>
- </head>
- <body>
- <!-- 广告位:内容页下 -->
- <script type='text/javascript'>BAIDU_CLB_fillSlot('38273');</script>
- </body>
-
- <!--热图欣赏开始-->
- <table width="550" height="360" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td>
-
- <style type="text/css">
- .pt12 {
- font-size: 12px;
- line-height: 20px;
- color: #254f6f;
- }
- A.pt12:link {color: #254f6f;text-decoration: none;}
- A.pt12:visited {color: #000000;text-decoration: none;}
- A.pt12:hover {color: #be0000;text-decoration: none;}
- -->
- </style>
- <table width="535" height="325" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#05131C" class="boder">
- <tr>
- <td height="30" colspan="3" align="center" bgcolor="#FFFFFF"><img src="http://img1.gtimg.com/cq/pics/21047/21047851.jpg" width="535" height="29" border="0" usemap="#Map"></td>
- </tr>
- <tr>
-
- <!--{block name="spacenews" parameter="haveattach/1/showattach/1/order/i.dateline DESC/subjectlen/23/subjectdot/1/limit/0,6/cachetime/8000/cachename/picnews/tpl/data"}-->
- <!--{eval $i = 1;}-->
- <!--{loop $_SBLOCK['picnews'] $value}-->
- <td width="174" align="center">
- <table width="170" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
- <tr>
- <td height="120" align="center" valign="middle"><a href="$value[url]"><img src="$value[a_thumbpath]" alt="$value[subjectall]" width="160" height="110" border="0" /></a></td>
- </tr>
- <tr>
- <td height="25" align="center"><a href="$value[url]" class="pt12">$value[subject]</a></td>
- </tr>
- </table>
- </td>
- <!--{if $i == 3}--></tr><tr><!--{/if}-->
- <!--{eval $i++;}-->
- <!--{/loop}-->
- </tr>
- </table></td>
- </tr>
- </table>
- <map name="Map">
- <area shape="rect" coords="419,4,526,26" href="http://www.kwz.cc" target="_blank">
- </map>
- </td>
- </tr>
- </table>
- <!--热图欣赏结束-->
- <table width="490" border="0" align="center" cellpadding="0" cellspacing="0" id="newsTable">
- <tr>
- <td width="5" height="26" background="http://mat1.qq.com/cq/images/dcy09tj/bottom_01.gif"></td>
- <td width="143" align="left" valign="bottom" background="http://mat1.qq.com/cq/images/dcy09tj/bottom_03.gif">
- <table width="100" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="30" height="18" align="center" valign="middle"><img src="http://mat1.qq.com/cq/images/dcy09tj/bottom_02.gif" width="12" height="12" /></td>
- <td align="left" valign="middle" class="whitesong14bold"><a href="http://www.kwz.cc/?action-news" class="whitesong14bold">新闻中心</a></td>
- </tr>
- <tr>
- <td height="3" colspan="2" align="center" valign="middle"></td>
- </tr>
- </table>
- </td>
- <td width="341" align="center" valign="middle" background="http://mat1.qq.com/cq/images/dcy09tj/bottom_04.gif"><span class="redsong12">·</span><a href="http://www.kwz.cc/?action-category-catid-1" target="_blank" class="redsong12">万州</a> <span class="redsong12">·</span><a href="http://www.kwz.cc/?action-category-catid-2" class="redsong12">重庆</a> <span class="redsong12">·</span><a href="http://www.kwz.cc/?action-yl" class="redsong12">娱乐</a> <span class="redsong12">·</span><a href="http://www.kwz.cc/?action-nx" class="redsong12">女性</a> <span class="redsong12">·</span><a href="http://www.kwz.cc/?action-ms" class="redsong12">美食</a> <span class="redsong12">·</span><a href="http://www.kwz.cc/?action-jj" class="redsong12">家居</a> <span class="redsong12">·</span><a href="http://www.kwz.cc/?action-fc" target="_blank" class="redsong12">房产</a> <span class="redsong12">·</span><a href="http://mm.kw.cc" class="redsong12">交友</a> </td>
- <td width="1" bgcolor="#cacaca"></td>
- </tr>
- <tr>
- <td height="141" colspan="4"><table width="490" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="1" rowspan="2" bgcolor="#cacaca"></td>
- <td width="160" rowspan="2" align="center" valign="middle"><table width="150" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="105" align="center" valign="middle" bgcolor="#F6F6F6"><a href="http://www.kwz.cc/?action-viewnews-itemid-8318"><img src="http://www.kwz.cc/attachments/2010/03/1_201003300958561OnTw.jpg" width="132" height="90" border="0" /></a></td>
- </tr>
- <tr>
- <td height="20" align="center" valign="middle" bgcolor="#F6F6F6"><a href="http://www.kwz.cc/?action-viewnews-itemid-8318" target="_blank" class="graysong12">男人不想让女人知道的秘密</a></td>
- </tr>
- </table>
- </td>
- <td height="40" colspan="2" align="center" valign="middle"><table width="315" height="30" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td align="left" valign="bottom" class="blacksong14">[<a href="http://www.kwz.cc/?action-news" target="_blank" class="blacksong14">新闻</a>]<a href="http://www.kwz.cc/?action-viewnews-itemid-7176" target="_blank" class="boldredsong14">情场必读:“处女”为啥最吸引男人</a></td>
- </tr>
- </table></td>
- <td width="1" rowspan="2" bgcolor="#cacaca"></td>
- </tr>
- <tr>
- <td width="157" height="100" align="center" valign="middle"><table width="159" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="159" align="left" valign="middle">
- <span class="bottomheisesong">·</span><a href="http://www.kwz.cc/?viewnews-7175" class="bottomheisesong">让男人迷恋的10种怪女人</a><br />
- <span class="bottomheisesong">·</span><a href="http://www.kwz.cc/?viewnews-7171" class="bottomheisesong">剩男不娶别人玩剩的女人</a><br />
- <span class="bottomheisesong">·</span><a href="http://www.kwz.cc/?viewnews-7155" class="bottomheisesong">男人向女人告白时六个禁忌</a><br />
- <span class="bottomheisesong">·</span><a href="http://www.kwz.cc/?action-viewnews-itemid-7144" class="bottomheisesong">中国女人特有的性暗示</a></td>
- </tr>
- </table></td>
- <td width="171" align="center" valign="middle"><table width="155" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td align="left" valign="middle">
- <span class="bottomheisesong">·</span><a href="http://www.kwz.cc/?action-viewnews-itemid-7139" class="bottomheisesong">不能和男人开的四个玩笑</a><br />
- <span class="bottomheisesong">·</span><a href="http://www.kwz.cc/?action-viewnews-itemid-7128" class="bottomheisesong">男人为什么不娶初恋女人</a><br />
- <span class="bottomheisesong">·</span><a href="http://www.kwz.cc/?action-viewnews-itemid-7123" class="bottomheisesong">女人在床上最害羞的6件事</a><br />
- <span class="bottomheisesong">·</span><a href="http://www.kwz.cc/?action-viewnews-itemid-6809" class="bottomheisesong">男女外遇之后的回归率</a></td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td height="1" colspan="5" bgcolor="#cacaca"></td>
- </tr>
- </table></td>
- </tr>
- </table>
- <table width="490" border="0" align="center" cellpadding="0" cellspacing="0" id="newsTable2">
- <tr>
- <td width="1" rowspan="2" bgcolor="#cacaca"></td>
- <td height="49" align="center" valign="middle"><table width="464" border="0" cellspacing="0" cellpadding="0">
- <tr>
-
- <td width="116" align="left" valign="middle">
- <head>
- <script type='text/javascript' src='http://cbjs.baidu.com/js/m.js'></script>
- <script type='text/javascript'>
- BAIDU_CLB_addSlot('40937');
- BAIDU_CLB_enableAllSlots();
- </script>
- </head>
- <body>
- <!-- 广告位:新闻中心一 -->
- <script type='text/javascript'>BAIDU_CLB_fillSlot('40937');</script>
- </body>
- </td>
- </tr>
- </table></td>
- <td width="1" rowspan="2" bgcolor="#cacaca"></td>
- </tr>
- <tr>
- <td height="1" bgcolor="#cacaca"></td>
- </tr>
- </table>
-
- <P align=right><FONT color=#666666><a href="http://www.kwz.cc/do.php?action=register" target="_blank">[注册成为会员]</a></FONT></P>
- </div>
- <div id="ArtPLink">
- <!--{if checkperm('allowcomment')}-->
- <div class="sign_msg">
- <a name="sign_msg"></a>
- <form action="#action/viewcomment/itemid/$news[itemid]/php/1#" method="post">
- <script language="javascript" type="text/javascript" src="{S_URL}/batch.formhash.php?rand={eval echo rand(1, 999999)}"/></script>
- <fieldset>
- <legend>发表评论</legend>
- <div class="sign_msg_login">
-
- </div>
- <textarea style="background:#F9F9F9 url({S_URL}/images/comment/$_SCONFIG[commicon]) no-repeat 50% 50%;" id="message" cols="60" rows="4" name="message" onClick="clearcommentmsg();hideelement('imgseccode');" onBlur="addcommentmsg();" onKeyDown="ctlent(event,'postcomm');" />$_SCONFIG[commdefault]</textarea>
- <div class="sign_msg_sub">
- <!--{if $_SGLOBAL['supe_uid']}-->
- <!--{if checkperm('allowanonymous')}-->
- <label for="signcheck_01"><input class="input_checkbox" type="checkbox" id="signcheck_01" name="hideauthor" value="1" />匿名</label>
- <!--{/if}-->
- <!--{if checkperm('allowhideip')}-->
- <label for="signcheck_02"><input class="input_checkbox" type="checkbox" id="signcheck_02" name="hideip" value="1" />隐藏IP</label>
- <!--{/if}-->
- <!--{if checkperm('allowhidelocation')}-->
- <label for="signcheck_03"><input class="input_checkbox" type="checkbox" id="signcheck_03" name="hidelocation" value="1" />隐藏位置</label>
- <!--{/if}-->
- <!--{if $_SCONFIG['allowfeed']}-->
- <label for="signcheck_04"><input class="input_checkbox" type="checkbox" id="signcheck_04" name="addfeed" checked="checked">加入事件</label>
- <!--{/if}-->
- <!--{/if}-->
- <!--{if empty($_SCONFIG['noseccode'])}-->
- <span class="authcode_sub"><label style="margin-right:0;" for="seccode">验证码:</label>
- <input type="text" class="input_tx" size="10" id="seccode" name="seccode" maxlength="4" onFocus="showelement('imgseccode')" />
- <img style="display:none;" id="imgseccode" class="img_code" src="{S_URL}/do.php?action=seccode" onClick="newseccode('imgseccode');" alt="seccode" title="看不清?点击换一张" />
- <a class="changcode_txt" title="看不清?点击换一张" href="javascript:showelement('imgseccode');newseccode('imgseccode');">换一张</a>
- </span>
- <!--{/if}-->
-
- <input type="submit" value="发表" name="searchbtn" onClick="return submitcheck();" class="input_search"/>
- <input type="hidden" value="$news[type]" name="type" />
- <input type="hidden" value="submit" name="submitcomm" />
- <input type="hidden" id="itemid" name="itemid" value="$news[itemid]" />
- <input type="hidden" id="upcid" name="upcid" value="" size="5" />
- <input type="hidden" id="type" name="type" value="$news[type]" size="5" />
-
- </div>
-
- </fieldset>
- </form>
- <p class="sign_tip">网友评论仅供网友表达个人看法,并不表明本网同意其观点或证实其描述。</p>
- </div><!--sign_msg end-->
- <!--{/if}-->
- <div id="comment_op"><a href="#action/viewcomment/itemid/$news[itemid]#" class="view" target="_blank">查看全部回复</a><span>【已有$news[replynum]位网友发表了看法】</span></div>
- </div>
- <div id="ArtInfo">
- 热度{$news[hot]}票
- <!--{if !empty($_SCONFIG['commstatus'])}--> 【<a class="color_red" href="#action/viewcomment/itemid/$news[itemid]#" target="_blank" title="点击查看">共$news[replynum]条评论</a>】【<a class="color_red" href="#action/viewcomment/itemid/$news[itemid]#">我要评论</a>】<!--{/if}-->
- <a href="#action/top/idtype/hot#" target="_blank" class="add_top10">排行榜</a>
- <a href="javascript:;" class="add_bookmark" onClick="bookmarksite(document.title, window.location.href);">收藏</a>
- <a href="javascript:doPrint();" class="print">打印</a>
- <a href="javascript:;" class="send_frinend" onClick="showajaxdiv('{S_URL}/batch.common.php?action=emailfriend&itemid=$news[itemid]', 400);">发给朋友</a>
- <a href="javascript:;" class="report" onClick="report($news[itemid]);">举报</a>
- <script src="{S_URL}/batch.postnews.php?ac=fromss&itemid=$news[itemid]"></script>
- </div>
-
- </div>
- <!--右侧开始-->
- <div id="cntR">
- <div style="margin:5px auto 0;">
- <head>
- <script type='text/javascript' src='http://cbjs.baidu.com/js/m.js'></script>
- <script type='text/javascript'>
- BAIDU_CLB_addSlot('36523');
- BAIDU_CLB_enableAllSlots();
- </script>
- </head>
- <body>
- <!-- 广告位:文章内容页一300*250 -->
- <script type='text/javascript'>BAIDU_CLB_fillSlot('36523');</script>
- </body>
- </div>
- <div style="margin:5px auto 0;">
- <head>
- <script type='text/javascript' src='http://cbjs.baidu.com/js/m.js'></script>
- <script type='text/javascript'>
- BAIDU_CLB_addSlot('36524');
- BAIDU_CLB_enableAllSlots();
- </script>
- </head>
- <body>
- <!-- 广告位:文章内容页二300*250 -->
- <script type='text/javascript'>BAIDU_CLB_fillSlot('36524');</script>
- </body>
- </div>
- <div style="margin:5px auto 0;">
- <head>
- <script type='text/javascript' src='http://cbjs.baidu.com/js/m.js'></script>
- <script type='text/javascript'>
- BAIDU_CLB_addSlot('36525');
- BAIDU_CLB_enableAllSlots();
- </script>
- </head>
- <body>
- <!-- 广告位:文章内容页三300*250 -->
- <script type='text/javascript'>BAIDU_CLB_fillSlot('36525');</script>
- </body>
- </div>
- <div style="margin:5px auto 0;">
- <head>
- <script type='text/javascript' src='http://cbjs.baidu.com/js/m.js'></script>
- <script type='text/javascript'>
- BAIDU_CLB_addSlot('36526');
- BAIDU_CLB_enableAllSlots();
- </script>
- </head>
- <body>
- <!-- 广告位:文章内容页四300*250 -->
- <script type='text/javascript'>BAIDU_CLB_fillSlot('36526');</script>
- </body>
- </div>
- <div id="PicSpeek2" style="height:145px; overflow:hidden">
- <dl>
- <dt>推荐阅读</dt>
- <dd>
- <!--日常修改部分:Start-->
- <!--{block name="spacenews" parameter="haveattach/1/showattach/1/order/i.dateline DESC/subjectlen/20/subjectdot/1/limit/7,2/cachetime/8000/cachename/picnews/tpl/data"}-->
- <!--{loop $_SBLOCK['picnews'] $value}-->
- <p align="left">
- <a href="$value[url]"><img src="$value[a_thumbpath]" alt="$value[subjectall]" width="130" height="88" border="0"/></a> <br/>
- <a href="$value[url]">$value[subject]</a></p>
- <!--{/loop}-->
- <!--日常修改部分:End-->
- </dd>
- </dl>
- </div>
-
- <style type="text/css">
- #k51302 { width:282px; float:left;text-align:left;padding-left: 15px;}
- </style>
- <div id="k51302">
- <!--{block name="spacenews" parameter="order/i.dateline DESC/limit/0,4/subjectlen/38/cachetime/900/cachename/headnews/tpl/data"}-->
- <!--{eval $i = 1;}-->
- <!--{loop $_SBLOCK['headnews'] $value}-->
- ·<a href="$value[url]">$value[subject]</a><!--{if $i != 4}--><br /><!--{/if}-->
- <!--{eval $i++;}-->
- <!--{/loop}-->
- </div>
-
- <div id="PicSpeek">
- <dl>
- <dt>视觉焦点</dt>
- <dd>
- <!--日常修改部分:Start-->
- <!--{block name="spacenews" parameter="haveattach/1/showattach/1/order/i.dateline DESC/subjectlen/20/subjectdot/1/limit/9,4/cachetime/8000/cachename/picnews/tpl/data"}-->
- <!--{loop $_SBLOCK['picnews'] $value}-->
- <p align="left">
- <a href="$value[url]"><img src="$value[a_thumbpath]" alt="$value[subjectall]" width="130" height="88" border="0"/></a> <br/>
- <a href="$value[url]">$value[subject]</a></p>
- <!--{/loop}-->
- <!--日常修改部分:End-->
- </dd>
- </dl>
- </div>
-
- <div id="NewsTop">
- <div id="NewsTop_tit">
- <p class="topTit">精彩推荐</p>
- <p class="topC0">最新</p>
- <p class="topC0">最热</p>
- <p class="topC0">热评</p>
- </div>
- <div id="NewsTop_cnt">
- <span title="Don't delete me"></span>
- <span>
- <!--{block name="spacenews" parameter="showcategory/1/order/i.dateline DESC/limit/4,10/subjectlen/32/cachetime/900/cachename/headnews/tpl/data"}-->
- <!--{eval $i = 1;}-->
- <!--{loop $_SBLOCK['headnews'] $value}-->
- [<a href="#action/category/catid/$value[catid]#">$value[catname][name]</a>] <a href="$value[url]">$value[subject]</a><!--{if $i != 10}--><br /><!--{/if}-->
- <!--{eval $i++;}-->
- <!--{/loop}-->
- </span>
-
- <span>
- <!--{block name="spacenews" parameter="showcategory/1/order/i.viewnum DESC/limit/0,10/subjectlen/32/cachetime/900/cachename/headnews/tpl/data"}-->
- <!--{eval $i = 1;}-->
- <!--{loop $_SBLOCK['headnews'] $value}-->
- [<a href="#action/category/catid/$value[catid]#">$value[catname][name]</a>] <a href="$value[url]">$value[subject]</a><!--{if $i != 10}--><br /><!--{/if}-->
- <!--{eval $i++;}-->
- <!--{/loop}-->
- </span>
- <span>
- <!--{block name="spacenews" parameter="showcategory/1/order/i.lastpost DESC/limit/0,10/subjectlen/32/cachetime/900/cachename/headnews/tpl/data"}-->
- <!--{eval $i = 1;}-->
- <!--{loop $_SBLOCK['headnews'] $value}-->
- [<a href="#action/category/catid/$value[catid]#">$value[catname][name]</a>] <a href="$value[url]">$value[subject]</a><!--{if $i != 10}--><br /><!--{/if}-->
- <!--{eval $i++;}-->
- <!--{/loop}-->
- </span>
- </div>
- <script>
- var Tags=document.getElementById('NewsTop_tit').getElementsByTagName('p');
- var TagsCnt=document.getElementById('NewsTop_cnt').getElementsByTagName('span');
- var len=Tags.length;
- var flag=1;//修改默认值
- for(i=1;i<len;i++){
- Tags[i].value = i;
- Tags[i].onmouseover=function(){changeNav(this.value)};
- TagsCnt[i].className='undis';
- }
- Tags[flag].className='topC1';
- TagsCnt[flag].className='dis';
- function changeNav(v){
- Tags[flag].className='topC0';
- TagsCnt[flag].className='undis';
- flag=v;
- Tags[v].className='topC1';
- TagsCnt[v].className='dis';
- }
- </script>
- </div>
-
-
- </div>
- <div id="EndLine"><div></div></div>
- </div>
- <!--{if !empty($ads3['pagefootad'])}-->
- <div class="ad_pagebody">$ads3[pagefootad]</div>
- <!--{/if}-->
- <script type="text/javascript">
- <!--
- function clearcommentmsg() {
- if($('message').value == '$_SCONFIG[commdefault]') $('message').value = '';
- }
- function addcommentmsg() {
- if($('message').value == '') $('message').value = '$_SCONFIG[commdefault]';
- }
- //-->
- </script>
- <script language="javascript" type="text/javascript">
- <!--
- addMediaAction('article_body');
- addImgLink("article_body");
- //-->
- </script>
- <!--{if !empty($ads3['pagemovead']) || !empty($ads3['pageoutad'])}-->
- <!--{if !empty($ads3['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;">
- $ads3[pagemovead]
- <br />
- <img src="{S_URL}/images/base/advclose.gif" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('coupleBannerAdv');">
- </div>
- <div style="position: absolute; right: 6px; top: 6px;">
- $ads3[pagemovead]
- <br />
- <img src="{S_URL}/images/base/advclose.gif" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('coupleBannerAdv');">
- </div>
- </div>
- <!--{/if}-->
- <!--{if !empty($ads3['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">
- $ads3[pageoutad]
- </div>
- </div>
- <!--{/if}-->
- <script type="text/javascript" src="{S_URL}/include/js/floatadv.js"></script>
- <script type="text/javascript">
- <!--{if !empty($ads3['pageoutad'])}-->
- var lengthobj = getWindowSize();
- lsfloatdiv('floatAdv', 0, 0, 'floatFloor' , -lengthobj.winHeight).floatIt();
- <!--{/if}-->
- <!--{if !empty($ads3['pagemovead'])}-->
- lsfloatdiv('coupleBannerAdv', 0, 0, '', 0).floatIt();
- <!--{/if}-->
- </script>
- <!--{/if}-->
- <!--{template footer}-->
复制代码 |