用CSS做滑动效果的图片的代码如下(这样做好的好处是 避免了使用FLASH 降低织梦dedecms网页体积 对SEO优化 比较好缺点: 效果上和FLASH 没发比):
<style>#galleryh { padding:0; margin:0 auto 5em auto; list-style-type:none; overflow:hidden; width:495px; height:240px; border:1px solid #888; background:#fff url(/imagelist/06/24/o9642o826u4n.gif); } #galleryh li { float:left; } #galleryh li a { display:block; height:240px; width:28px; float:left; text-decoration:none; border-right:1px solid #fff; cursor:default; } #galleryh li a img { width:28px; height:240px; border:0; } #galleryh li a:hover { background:#eee; width:320px; } #galleryh li a:hover img { width:320px; } </style><ul id="galleryh"><li><a href="#nogo"><img src="https://www.dede58.com/uploads/allimg/c100602/12K4V3cT0-22A8_lit.jpg" alt="#1" title="#1" /></a></li><li><a href="#nogo"><img src="https://www.dede58.com/uploads/allimg/c100602/12K4V39C40-13258_lit.jpg" alt="#2" title="#2" /></a></li><li><a href="#nogo"><img src="https://www.dede58.com/uploads/allimg/c100602/12K4V3T10-1Y12_lit.jpg" alt="#3" title="#3" /></a></li><li><a href="#nogo"><img src="https://www.dede58.com/uploads/allimg/100602/21562L154-0-lp.jpg" alt="#4" title="#4" /></a></li><li><a href="#nogo"><img src="https://www.dede58.com/uploads/allimg/c100605/12KJ1150S0-15596_lit.jpg" alt="#5" title="#5" /></a></li><li><a href="#nogo"></ul>
最后要在织梦模板中调用这个,请注意DEDE 缩略图调用代码为:{dede:arclist row=10 titlelen=24 orderby=pubdate typeid=1 imgwidth='90' imgheight='90' type='all.'} <li> [field:imglink/] </li>