本帖最后由 jears 于 2009-12-7 18:24 编辑
回复 1# 雾雨冰岚
演示:http://www.zeow.cn/?action-earth
花了点时间给你把代码贴出来``
- <div class="column">
- <div class="col1">
- <div class="clearfix">
- <div class="col3">
复制代码
在这里加入下面的代码
注意红色部分
<!--{block name="spacenews" parameter="haveattach/2/order/i.dateline
DESC/limit/0,5/cachetime/900/subjectlen/25/showcategory/1/cachename/picnews/tpl/data"}-->
<DIV id=lantern_slide>
<!--{if !empty($_SBLOCK['picnews'])}-->
<!--{eval $picnews = @array_slice($_SBLOCK['picnews'], 0, 5);}-->
<TABLE class=ge id=ge cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD class=pic id=bimg><!---图像大小300px×300px--->
<!--{eval $j = 0}-->
<!--{loop $picnews $pkey $pvalue}-->
<!--{eval $pcurrent = ($j == 0 ? 'dis' : 'undis');}-->
<DIV class=$pcurrent name="f"><A
href="#action/viewnews/itemid/$pvalue[itemid]#"
target=_blank><IMG alt="$pvalue[subject]" src="$pvalue['a_filepath']" ></A></DIV>
<!--{eval $j++}-->
<!--{/loop}-->
<TABLE id=font_hd cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD class=lkff id=info>
<!--{eval $i = 0}-->
<!--{loop $picnews $key $value}-->
<!--{eval $current = ($i == 0 ? 'dis' : 'undis');}-->
<DIV class=$current name="f"><A
href="#action/viewnews/itemid/$pvalue[itemid]#"
target=_blank>$value[subject]</A></DIV>
<!--{eval $i++}-->
<!--{/loop}-->
</TD>
<TD id=simg>
<DIV class="" onclick=play(x[0],0) name="f">1</DIV>
<DIV class=f1 onclick=play(x[1],1) name="f">2</DIV>
<DIV class=f1 onclick=play(x[2],2) name="f">3</DIV>
<DIV class=f1 onclick=play(x[3],3) name="f">4</DIV>
<DIV class=f1 onclick=play(x[4],4) name="f">5</DIV>
</TD></TR></TBODY></TABLE>
<SCRIPT src="{S_URL}/templates/default3/js/pdhd.js" type=text/javascript></SCRIPT>
</TD></TR></TBODY></TABLE>
<!--{/if}-->
</DIV>
CSS
JS
注意把CSS 跟JS 放到你的网站合适的位置,并在加有上面代码的页面调用出来,我就不多说了,我也是很菜的鸟``
有什么不清楚的PM我`` |