php鼠标点击切换背景,js鼠标点击按钮切换图片-图片自动切换-点击左右按钮切换特效代码_javascript技巧...

今天来分享一下鼠标点击按钮,图片进行切换+图片自动切换+点击左右按钮图片进行切换的三种效果的组合代码。

最后的效果如下:

4c31117b382a916579c1d73f3dd11c3b.png

5b3afb8c8f9c5142ebd3c9027306a3a3.png

Html代码部分:

图片轮播效果制作_赵一鸣随笔博客

Css代码部分:

*{margin:0px;padding:0px}

li{list-style:none}

a{text-decoration:none}

img{border:0px}

.banner{width:350px;height:495px;margin:100px auto;position:relative;overflow:hidden}

.banner .pic{width:9999px;height:495px}

.banner .pic li{width:350px;height:495px;float:left}

.banner .anniu{width:100px;height:16px;position:absolute;left:165px;top:470px}

.banner .anniu li{width:16px;height:16px;background:white;float:left;margin:2px;display:inline;

cursor:pointer;border-radius:100%}

.banner .anniu li.on{background:red}

.banner .lr{width:350px;height:50px;position:absolute;top:250px;display:none}

.banner .lr a{color:white}

.banner .lr .pre{width:20px;height:50px;float:left;background:none repeat scroll 0px 0px rgba(1, 0, 0, 0.6);text-align:center;line-height:50px;cursor:pointer}

.banner .lr .next{width:20px;height:50px;float:right;background:none repeat scroll 0px 0px rgba(1, 0, 0, 0.6);text-align:center;line-height:50px;cursor:pointer}

Javascript代码部分:

本条技术文章来源于互联网,如果无意侵犯您的权益请点击此处反馈版权投诉

本文系统来源:php中文网

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值