爱易网
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 浏览次数:20271 次
以下是程序代码
<!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_top"> <ul id="show_pic_top" style="top: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_top"> <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(){ funct
上一篇:狡猾的按钮特效
下一篇:漂亮的黑色背景风格JS焦点图切换特效
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
网易微博将正式关闭 用户迁至轻博客LOFTER
支付宝被曝严重破绽 隐私平安再受质疑
特斯拉将获上海免费牌照 充电桩面临双重标准
传三星为赢得新兴市场:推廉价版Note3
谷歌欲收买WhatsApp添加砝码 对方否认
从百度世界大会看大数据
百度吴恩达:图像和音视频搜索是人工智能新方向
传诺基亚5月14日发布会推出Lumia 950
墨迹也要做硬件,工具类应用如何“变异”的
推荐阅读
更多>
英特尔VS苹果:移动芯片大战
小米2S试水高端化 纯“性价比”玩法已成过去式
分析称iPhone 6明年初发布 屏幕变为4.8吋
网络文学竞争白热化 百度多酷文学网上线
首家国有独资P2P平台上线 或预示政策日渐明朗
盘点改变社会的15种科技:谷歌眼镜将使我们成为半机械人
英特尔技术高管离任 电视业务或受影响
苹果大中华区业绩回暖 中移动贡献或低于预期
传诺基亚5月14日发布会推出Lumia 950
网络音乐非片面收费 高晓松时间表难完成
微软不会被颠覆
Android版WhatsApp曝漏洞:聊天记录可被窃取
中移动五大基地将整改成公司:被指易滋生腐败
韩国研制无线充电系统:一次可充40部手机
阿朗力避步北电后尘 急切停止自我革新
京东终于想明白,这些年错过的财运,都藏在女人的时装下
移动联通回应税率改革:短期内收入利润将大减
用户喊话当当网:我彻底把你们丢弃了
百度“全网寻人”面前的互联网信息枢纽价值
埃里克杰克森:阿里IPO估值至少1500亿美元