用CSS做滑动效果的图片的代码如下(这样做好的好处是 避免了使用FLASH 降低织梦 dedecms 网页体积 对SEO优化 比较好 缺点: 效果上和FLASH 没发比): style #galleryh { padding:0; margin:0 auto 5em au...
用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="http://www.123.com/uploads/allimg/c100602/12K4V3cT0-22A8_lit.jpg" alt="#1" title="#1" /></a></li>
<li><a href="#nogo">
<img src="http://www.123.com/uploads/allimg/c100602/12K4V39C40-13258_lit.jpg" alt="#2" title="#2" /></a></li>
<li><a href="#nogo">
<img src="http://www.123.com/uploads/allimg/c100602/12K4V3T10-1Y12_lit.jpg" alt="#3" title="#3" /></a></li>
<li><a href="#nogo">
<img src="http://www.123.com/uploads/allimg/100602/21562L154-0-lp.jpg" alt="#4" title="#4" /></a></li>
<li><a href="#nogo">
<img src="http://www.123.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>
DedeCMS问题解决
请点击在线联系我们【点击咨询解决问题】 如果您有任何织梦问题,我们将免费为您写解决教程!
用心认真写教程不易,请小打赏我们一下,多少是心意,解决问题是重点
【打赏说明】 如果您认为在本站中看的内容质量不错、或阅读后有所收获、或解决您遇到的实际问题,那不妨小金额的赞助一下尚禹科技,让尚禹科技有动力继续写出更多高质量的教程和心得。以帮助更多的人。[查看打赏记录]