天婷a
这个图文资讯还真是不会写
特别那个幻灯片。模块我会。但是那个flash幻灯片需要另外的 ...
neol123 发表于 2009-11-12 22:07
他本来就有,- <div class="news_pic_list">
- <!--{block name="spacenews" parameter="catid/1,2,3,4,5/haveattach/2/order/i.dateline DESC/limit/5,3/cachetime/900/subjectlen/20/cachename/news_wy_pic/tpl/data"}--><!--网游图片资讯-->
- <ul>
- <!--{loop $_SBLOCK['news_wy_pic'] $value}-->
- <li><a href="$value[url]" target="_blank" title="$value[subjectall]"><img src="$value[a_thumbpath]" alt="$value[subjectall]" /></a><span><a target="_blank" href="$value[url]">$value[subject]</a></span></li>
- <!--{/loop}-->
- </ul>
- </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>
复制代码- 这个是官方的幻灯片
- <!--{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-->
- 这四他对应的CSS,自己改改就可以了
- /* focus turn */
- #focus_turn { position:relative; height:315px; margin-bottom:10px; border:1px solid #D8D8D8; background:url(../images/focus_turn_bg.gif) repeat-x; }
- #focus_pic { margin:12px 0 0 12px!important; margin:11px 0 0 12px; }
- #focus_pic li img { width:350px; height:260px; padding:1px; border:1px solid #D8D8D8; background:#FFF; }
- #focus_pic .normal { display:none; }
- #focus_pic .current { display:block; }
- #focus_btn { position:absolute; right:14px; bottom:41px; border-left:1px solid #D8D8D8; }
- #focus_btn span { display:block; float:left; overflow:hidden; width:22px; height:22px; margin:0 0 0 -1px; border:1px solid #D8D8D8; text-align:center; font:14px Arial, Helvetica, sans-serif; font-weight:700; line-height:22px; cursor:pointer; }
- #focus_btn .normal { background:#FFF; color:#1A4963; }
- #focus_btn .current { background:#1A4963; color:#FFF; }
- #focus_tx { height:20px; overflow:hidden; margin:5px 0 0 12px; font-size:14px; line-height:20px; }
- #focus_tx .normal { display:none; }
- #focus_tx .current { display:block; }
- #focus_opacity { position:absolute; left:14px; bottom:41px; width:350px; height:24px; background:#FFF; opacity:0.4; filter:alpha(opacity=40); }
- 如果要漂亮的,那要懂JS
复制代码 |