如上图,影音栏目有5項,分别是焦点影音、本周焦点、本月焦点、最新影音、热门影音。
默认显示的是焦点影音,显示没有问题,但是栏目显示出来点问题。正常时点击那个栏目,那个栏目就加重,而且应该只有一个加重,是焦点影音。但是现在虽然现实的内容是焦点影音,但是本周焦点和最新影音确加重了。这种现象只有随便点某个栏目就会正常,为何这样?
这段代码如下。
-
- <div class="mainarea">
- <!--评论最多-->
- <div id="focusvideo" class="tabblock" style="height: 520px; overflow: hidden;">
- <h3 id="focusvideotabs" class="tabs">
-
- <a id="videoalltab" href="javascript:setTab('focusvideo','videoall')" class="tab">焦点影音排行</a>
- <a id="videoweektab" href="javascript:setTab('focusvideo','videoweek')" class="tab curtab">本周焦点影音</a>
- <a id="videomonthtab" href="javascript:setTab('focusvideo','videomonth')" class="tab">本月焦点影音</a>
- <a id="newvideotab" href="javascript:setTab('focusvideo','newvideo');" class="tab curtab">最新影音</a>
- <a id="hotviewvideotab" href="javascript:setTab('focusvideo','hotviewvideo');" class="tab">热门影音</a>
- </h3>
- <div id="videoall" class="tabcontent">
- <!--{block name="spacevideo" parameter="order/i.viewnum DESC/limit/0,10/cachetime/94400/subjectlen/20/subjectdot/1/showdetail/1/messagelen/34/messagedot/1/cachename/focusvideo/tpl/data"}-->
- <ul class="thumbmsglist thumb2col">
- <!--{loop $_SBLOCK['focusvideo'] $value}-->
- <li>
- <p class="thumb"><a href="$value[url]" target="_blank"><img src="$value[image]" alt="$value[subjectall]" /></a></p>
- <div>
- <h4><a href="$value[url]" target="_blank" title="$value[subjectall]">$value[subject]</a></h4>
- <!--{if $value['message']}--><p>$value[message]</p><!--{/if}-->
- <p class="msginfo">
- 上传: <a href="#uid/$value[uid]/action/space#" target="_blank">$value[username]</a>
- <!--{if $value[replynum]}--><a href="$value[url]" target="_blank" class="replynum">评论: $value[replynum]</a><!--{/if}-->
- <!--{if $value['goodrate']}-->好评: $value[goodrate]<!--{/if}-->
- </p>
- </div>
- </li>
- <!--{/loop}-->
- </ul>
- </div>
- <div id="videoweek" class="tabcontent" style="display: none;">
- <!--{block name="spacevideo" parameter="dateline/604800/order/i.viewnum DESC/limit/0,10/cachetime/74400/subjectlen/20/subjectdot/1/showdetail/1/messagelen/34/messagedot/1/cachename/focusvideoweek/tpl/data"}-->
- <ul class="thumbmsglist thumb2col">
- <!--{loop $_SBLOCK['focusvideoweek'] $value}-->
- <li>
- <p class="thumb"><a href="$value[url]" target="_blank"><img src="$value[image]" alt="$value[subjectall]" /></a></p>
- <div>
- <h4><a href="$value[url]" target="_blank" title="$value[subjectall]">$value[subject]</a></h4>
- <!--{if $value['message']}--><p>$value[message]</p><!--{/if}-->
- <p class="msginfo">
- 上传: <a href="#uid/$value[uid]/action/space#" target="_blank">$value[username]</a>
- <!--{if $value[replynum]}--><a href="$value[url]" target="_blank" class="replynum">评论: $value[replynum]</a><!--{/if}-->
- <!--{if $value['goodrate']}-->好评: $value[goodrate]<!--{/if}-->
- </p>
- </div>
- </li>
- <!--{/loop}-->
- </ul>
- </div>
- <div id="videomonth" class="tabcontent" style="display: none;">
- <!--{block name="spacevideo" parameter="dateline/2092000/order/i.viewnum DESC/limit/0,10/cachetime/84400/subjectlen/20/subjectdot/1/showdetail/1/messagelen/34/messagedot/1/cachename/focusvideomonth/tpl/data"}-->
- <ul class="thumbmsglist thumb2col">
- <!--{loop $_SBLOCK['focusvideomonth'] $value}-->
- <li>
- <p class="thumb"><a href="$value[url]" target="_blank"><img src="$value[image]" alt="$value[subjectall]" /></a></p>
- <div>
- <h4><a href="$value[url]" target="_blank" title="$value[subjectall]">$value[subject]</a></h4>
- <!--{if $value['message']}--><p>$value[message]</p><!--{/if}-->
- <p class="msginfo">
- 上传: <a href="#uid/$value[uid]/action/space#" target="_blank">$value[username]</a>
- <!--{if $value[replynum]}--><a href="$value[url]" target="_blank" class="replynum">评论: $value[replynum]</a><!--{/if}-->
- <!--{if $value['goodrate']}-->好评: $value[goodrate]<!--{/if}-->
- </p>
- </div>
- </li>
- <!--{/loop}-->
- </ul>
- </div>
- <div id="newvideo" class="tabcontent" style="display: none;">
- <!--{block name="spacevideo" parameter="order/i.dateline DESC/limit/0,13/cachetime/64400/subjectlen/30/subjectdot/1/cachename/newvideo/tpl/data"}-->
- <ul class="msgtitlelist">
- <!--{loop $_SBLOCK['newvideo'] $value}-->
- <li><cite><a href="#uid/$value[uid]#" target="_blank">$value[username]</a> </cite><a href="$value[url]" target="_blank" title="$value[subjectall]">$value[subject]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- <div id="hotviewvideo" class="tabcontent" style="display: none;">
- <!--{block name="spacevideo" parameter="dateline/604800/order/i.viewnum DESC/limit/0,13/cachetime/64400/subjectlen/30/subjectdot/1/cachename/hotvideo/tpl/data"}-->
- <ul class="msgtitlelist">
- <!--{loop $_SBLOCK['hotvideo'] $value}-->
- <li><cite><a href="#uid/$value[uid]#" target="_blank">$value[username]</a> </cite><a href="$value[url]" target="_blank" title="$value[subjectall]">$value[subject]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- </div>
- </div>
复制代码 |