爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
JS封装函数制作横向滚动的图片切换效果
JS封装函数制作横向滚动的图片切换效果
日期:2014-05-18 浏览次数:20339 次
以下是程序代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>picsGlide</title> <style type="text/css"> body{ font-size:12px; color:#333;} #picBox{width:610px; height:205px; margin:50px auto; overflow:hidden; position:relative;} #picBox ul#show_pic{ margin:0; padding:0; list-style:none; height:205px; width:3050px; position:absolute;} #picBox ul#show_pic li{ float:left; margin:0; padding:0; height:205px;} #picBox ul#show_pic li img{ display:block;} #icon_num{ position:absolute; bottom:0px; right:10px;} #icon_num li{ float:left; background:url(http://pc.qq.com/pc/images/flashbutton.gif) no-repeat -15px 0;width:15px; height:15px; list-style:none; color:#39F; text-align:center; cursor:pointer; padding:0; margin:0;margin-right:5px;} #icon_num li:hover,#icon_num li.active{ background:url(http://pc.qq.com/pc/images/flashbutton.gif) no-repeat 0 0; color:#fff;} #picBox_top{width:610px; height:205px; margin:50px auto; position:relative; overflow:hidden;} #picBox_top ul#show_pic_top{ margin:0; padding:0; list-style:none; height:205px; width:610px; position:absolute;} #picBox_top ul#show_pic_top li{ float:left; margin:0; padding:0; height:205px;} #picBox_top ul#show_pic_top li img{ display:block;} #icon_num_top{ position:absolute; bottom:0px; right:10px;} #icon_num_top li{ float:left; background:url(http://pc.qq.com/pc/images/flashbutton.gif) no-repeat -15px 0;width:15px; height:15px; list-style:none; color:#39F; text-align:center; cursor:pointer; padding:0; margin:0;margin-right:5px;} #icon_num_top li:hover,#icon_num_top li.active{ background:url(http://pc.qq.com/pc/images/flashbutton.gif) no-repeat 0 0; color:#fff;} </style> </head> <body> <div id="picBox"> <ul id="show_pic" style="left:0;"> <li><img src="http://inncache.soso.com/pc/images/manage.jpg" width="610" height="205" alt="" title="" /></li> <li><img src="http://inncache.soso.com/pc/images/player.jpg" width="610" height="205" alt="" title="" /></li> <li><img src="http://inncache.soso.com/pc/images/py.jpg" width="610" height="205" alt="" title="" /></li> <li><img src="http://inncache.soso.com/pc/images/xf.jpg" width="610" height="205" alt="" title="" /></li> <li><img src="http://inncache.soso.com/pc/images/TT.jpg" width="610" height="205" alt="" title="" /></li> </ul> <ul id="icon_num"> <li class="active">1</li> <li>2</li> <li>3</li> <li>4</li> <li>5</li> </ul> </div> <script type="text/javascript"> /** *glide.layerGlide((oEventCont,oSlider,sSingleSize,sec,fSpeed,point); *@param auto type:bolean 是否自动滑动 当值是true的时候 为自动滑动 *@param oEventCont type:object 包含事件点击对象的容器 *@param oSlider type:object 滑动对象 *@param sSingleSize type:number 滑动对象里单个元素的尺寸(width或者height) 尺寸是有point 决定 *@param second type:number 自动滑动的延迟时间 单位/秒 *@param fSpeed type:float 速率 取值在0.05--1之间 当取值是1时 没有滑动效果 *@param point type:string left or top */ var glide =new function(){ function $id(id)
上一篇:狡猾的按钮特效
下一篇:JS封装函数制作竖向滑动的图片切换效果
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
湘鄂情剥离餐饮业务进军大数据的底气在哪里?
独立工具APP:为亿级用户的商业化而愁
巧用百度推行系统 突显竞价效果
第二梯队也PK:当1号店“遇上”京东手机节
同样的背景,罗永浩和雷军到底有什么不同?
诺基亚培育低端机市场 迂回战术要挟中华酷联
百度“全网寻人”面前的互联网信息枢纽价值
iSuppli:上网本将于2015年退出市场
微软张亚勤趋势判断:未来三十年属于物理化互联网
推荐阅读
更多>
可靠消息称微型针孔偷拍设备拟全面禁止
携程艺龙联手死磕同程 价钱烽烟蔓延至机票
惠普董事长莱恩辞职 为巨额财务减记埋单
智能手机:中国手机市场最受关注十五款产品清点
任正非:华为决不上市 上市公司股东贪婪而短视
虚拟运营商们更像三大运营商的“二道贩子”
中电信率先推移动转售业务 中下旬批量上市
美图手机2问世 三大问题令其市场销量堪忧
顺丰O2O便利店将正式启动:涉及金融服务
传苹果中移动达成协议:新iPhone兼容TD制式
一大波智能路由器正在袭来:小米、360、极路由大PK
中国移动4G资费调整方案6月1日起正式实施
FB上广告费用昂贵而且效果不及Twitter
支付宝全面封杀比特币:充值码淘宝店或遭封禁
国内云服务商存在尴尬:“远程机房+移动大硬盘”模式
罗永浩工匠形象坍塌,锤子产能再跳水逃离用户超两成
马云自称在美国曾被绑票
《中国三网融合业务运营管理》研讨报告征订函
诺基亚再缩阵线 封锁上海旗舰店全力蜕变
MIUI,有了它小米就无惧对手