代码如下:
<style>
.bi_ws { float:left; width:470px; height:360px; background-color:#bb9b6c; overflow:hidden; }/*幻灯片的整体大小*/
.pi_cx { display:inline; position:relative; float:left; width:355px; height:350px; overflow:hidden; margin:6px 0 6px 6px; }/*大图片区域样式*/
.pi_cx div img { width:350px; height:350px; border:1px solid #946826; }/*大图片的大小*/
.bi_ws_op { margin-left: 8px; position:absolute; left:5; bottom:3px; width:350px; height:50px; color:#FFF; }/*字幕区定义*/
.bi_ws_opdiv { position:absolute; left:0; bottom:0px; width:350px; height:58px; background:#000; opacity:0.5; -moz-opacity:0.5; filter:alpha(opacity=50); }/*标题区背景 透明度50%*/
.bi_ws_op h2 a{ font-size: 18px; color:#FFF; font-weight: bolder; color:#FFFF00 }/*文章标题样式*/
.bi_ws_op h2 a:hover { text-decoration:none; }/*文章标题鼠标经过样式*/
.bi_ws_btn img { width:75px; height:75px; margin:9px 8px 0px 10px ; border:1px solid #ffffff; float:right; cursor:pointer; opacity:0.5; -moz-opacity:0.5; filter:alpha(opacity=70);}/*缩略图样式(非焦点缩略图)*/
.bi_ws .bi_ws_btn .on{ border:3px solid #4899e8 ; width:80px; height:80px; opacity:1; -moz-opacity:1; filter:alpha(opacity=100); }/*焦点缩略图样式*/
.bi_ws_right { float:right; width:490px;}
</style>
<div class=" bi_ws slidebox">
<div class="pi_cx slideshow">
[loop]
<div>
<a href="{url}"{target}><img src="{pic}" width="{picwidth}" height="{picheight}" /></a>
<div class="bi_ws_opdiv"></div>
<div class="bi_ws_op">
<ul>
<li>
<h2><a href="{url}"{target}>{title}</a></h2>
<p><span style="font-size: 12px">{summary}</span></p>
</li>
</ul>
</div>
</div>
[/loop]
</div>
<div class="bi_ws_btn slidebar">
[loop1]
<img src="{pic}" />
[/loop1]
</div>
<script type="text/javascript">runslideshow();</script>
</div>
进入后台,门户-添加模板-添加选择"文章模板",将以下代码复制到里面,起个诸如"魔幻幻灯片"的名字,在前台,DIY-需要的位置,添加模块,选择刚刚建立的模块,填写大小如下图所示:
|
|