- 浏览: 185312 次
- 性别:
- 来自: 四川
文章分类
- 全部博客 (131)
- CMS内容管理系统 (3)
- 支付宝实习之旅 (1)
- javaSE (5)
- myEclipse (1)
- DWR (0)
- strut2 (6)
- spring (4)
- hibernate (6)
- jquery (26)
- extjs (0)
- oracle (1)
- flex (10)
- ajax (0)
- jsp (3)
- java (4)
- JavaScript (4)
- css+div (5)
- Java面试 (3)
- java设计模式 (2)
- Think in java 笔记 (2)
- dom4j (1)
- JDBC (1)
- 经典方法学习 (1)
- windows常用操作 (1)
- maven (1)
- 75道经典逻辑题及答案 (1)
- mysql (3)
- jqueryDemo(插件) (3)
- php (14)
- ubuntu (6)
- 记事本 (1)
- php缓存 (1)
- 编程思想 (5)
- wamp (1)
- android (2)
- xml (1)
最新评论
-
coosummer:
推荐使用http://buttoncssgenerator.c ...
CSS按钮(研究) -
javaCrazy!:
监听一个keyup事件
jquery 监听input输入值事件 -
丶月满灬西楼彡:
问个问题:假如用户在Input中输入了“12345”,但后来又 ...
jquery 监听input输入值事件
<!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=gb2312" /> <title>超级经典一套鼠标控制左右滚动图片带自动翻滚</title> </head> <body> <div class="rollBox"> <div class="LeftBotton" onmousedown="ISL_GoUp()" onmouseup="ISL_StopUp()" onmouseout="ISL_StopUp()"></div> <div class="Cont" id="ISL_Cont"> <div class="ScrCont"> <div id="List1"> <!-- 图片列表 begin --> <div class="pic"> <a href="http://career.sina.com.cn/3/2007/0928/15.html" target="_blank"><img src="http://i0.sinaimg.cn/edu/deco/2007/0928/aiying.jpg" width="109" height="87" alt="周宪环" /></a> <p><a href="http://career.sina.com.cn/3/2007/0928/15.html" target="_blank">周宪环</a></p> </div> <div class="pic"> <a href="http://career.sina.com.cn/3/2007/0928/16.html" target="_blank"><img src="http://i1.sinaimg.cn/edu/deco/2007/0928/zhenwei.jpg" width="109" height="87" alt="周桢炜" /></a> <p><a href="http://career.sina.com.cn/3/2007/0928/16.html" target="_blank">周桢炜</a></p> </div> <div class="pic"> <a href="http://career.sina.com.cn/3/2007/0928/14.html" target="_blank"><img src="http://i2.sinaimg.cn/edu/deco/2007/0928/zhangying.jpg" width="109" height="87" alt="张颖" /></a> <p><a href="http://career.sina.com.cn/3/2007/0928/14.html" target="_blank">张颖</a></p> </div> <div class="pic"> <a href="http://career.sina.com.cn/3/2007/0928/17.html" target="_blank"><img src="http://i3.sinaimg.cn/edu/deco/2007/0928/wangnaichao.jpg" width="109" height="87" alt="王乃超" /></a> <p><a href="http://career.sina.com.cn/3/2007/0928/17.html" target="_blank">王乃超</a></p> </div> <div class="pic"> <a href="http://career.sina.com.cn/3/2007/0928/19.html" target="_blank"><img src="http://i1.sinaimg.cn/edu/deco/2007/0928/xiewenxiu.jpg" width="109" height="87" alt="谢雯琇" /></a> <p><a href="http://career.sina.com.cn/3/2007/0928/19.html" target="_blank">谢雯琇</a></p> </div> <div class="pic"> <a href="http://career.sina.com.cn/3/2007/0928/18.html" target="_blank"><img src="http://i1.sinaimg.cn/edu/deco/2007/0928/lvge.jpg" width="109" height="87" alt="吕铬" /></a> <p><a href="http://career.sina.com.cn/3/2007/0928/18.html" target="_blank">吕铬</a></p> </div> <div class="pic"> <a href="http://career.sina.com.cn/3/2007/0927/12.html" target="_blank"><img src="http://i2.sinaimg.cn/edu/deco/2007/0928/zhengru.jpg" width="109" height="87" alt="贾正如" /></a> <p><a href="http://career.sina.com.cn/3/2007/0927/12.html" target="_blank">贾正如</a></p> </div> <!-- 图片列表 end --> </div> <div id="List2"></div> </div> </div> <div class="RightBotton" onmousedown="ISL_GoDown()" onmouseup="ISL_StopDown()" onmouseout="ISL_StopDown()"></div> </div> </div> <style type="text/css"> <!-- .rollBox{width:704px;overflow:hidden;padding:12px 0 5px 6px;} .rollBox .LeftBotton{height:52px;width:19px;background:url(http://i3.sinaimg.cn/edu/deco/2007/0924/career/job_mj_069.gif) no-repeat 11px 0;overflow:hidden;float:left;display:inline;margin:25px 0 0 0;cursor:pointer;} .rollBox .RightBotton{height:52px;width:20px;background:url(http://i3.sinaimg.cn/edu/deco/2007/0924/career/job_mj_069.gif) no-repeat -8px 0;overflow:hidden;float:left;display:inline;margin:25px 0 0 0;cursor:pointer;} .rollBox .Cont{width:663px;overflow:hidden;float:left;} .rollBox .ScrCont{width:10000000px;} .rollBox .Cont .pic{width:132px;float:left;text-align:center;} .rollBox .Cont .pic img{padding:4px;background:#fff;border:1px solid #ccc;display:block;margin:0 auto;} .rollBox .Cont .pic p{line-height:26px;color:#505050;} .rollBox .Cont a:link,.rollBox .Cont a:visited{color:#626466;text-decoration:none;} .rollBox .Cont a:hover{color:#f00;text-decoration:underline;} .rollBox #List1,.rollBox #List2{float:left;} --> </style> <script language="javascript" type="text/javascript"> <!--//--><![CDATA[//><!-- //图片滚动列表 mengjia 070816 var Speed = 10; //速度(毫秒) var Space = 5; //每次移动(px) var PageWidth = 132; //翻页宽度 var fill = 0; //整体移位 var MoveLock = false; var MoveTimeObj; var Comp = 0; var AutoPlayObj = null; GetObj("List2").innerHTML = GetObj("List1").innerHTML; GetObj('ISL_Cont').scrollLeft = fill; GetObj("ISL_Cont").onmouseover = function(){clearInterval(AutoPlayObj);} GetObj("ISL_Cont").onmouseout = function(){AutoPlay();} AutoPlay(); function GetObj(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval('document.all.'+objName)}} function AutoPlay(){ //自动滚动 clearInterval(AutoPlayObj); AutoPlayObj = setInterval('ISL_GoDown();ISL_StopDown();',5000); //间隔时间 } function ISL_GoUp(){ //上翻开始 if(MoveLock) return; clearInterval(AutoPlayObj); MoveLock = true; MoveTimeObj = setInterval('ISL_ScrUp();',Speed); } function ISL_StopUp(){ //上翻停止 clearInterval(MoveTimeObj); if(GetObj('ISL_Cont').scrollLeft % PageWidth - fill != 0){ Comp = fill - (GetObj('ISL_Cont').scrollLeft % PageWidth); CompScr(); }else{ MoveLock = false; } AutoPlay(); } function ISL_ScrUp(){ //上翻动作 if(GetObj('ISL_Cont').scrollLeft <= 0){GetObj('ISL_Cont').scrollLeft = GetObj('ISL_Cont').scrollLeft + GetObj('List1').offsetWidth} GetObj('ISL_Cont').scrollLeft -= Space ; } function ISL_GoDown(){ //下翻 clearInterval(MoveTimeObj); if(MoveLock) return; clearInterval(AutoPlayObj); MoveLock = true; ISL_ScrDown(); MoveTimeObj = setInterval('ISL_ScrDown()',Speed); } function ISL_StopDown(){ //下翻停止 clearInterval(MoveTimeObj); if(GetObj('ISL_Cont').scrollLeft % PageWidth - fill != 0 ){ Comp = PageWidth - GetObj('ISL_Cont').scrollLeft % PageWidth + fill; CompScr(); }else{ MoveLock = false; } AutoPlay(); } function ISL_ScrDown(){ //下翻动作 if(GetObj('ISL_Cont').scrollLeft >= GetObj('List1').scrollWidth){GetObj('ISL_Cont').scrollLeft = GetObj('ISL_Cont').scrollLeft - GetObj('List1').scrollWidth;} GetObj('ISL_Cont').scrollLeft += Space ; } function CompScr(){ var num; if(Comp == 0){MoveLock = false;return;} if(Comp < 0){ //上翻 if(Comp < -Space){ Comp += Space; num = Space; }else{ num = -Comp; Comp = 0; } GetObj('ISL_Cont').scrollLeft -= num; setTimeout('CompScr()',Speed); }else{ //下翻 if(Comp > Space){ Comp -= Space; num = Space; }else{ num = Comp; Comp = 0; } GetObj('ISL_Cont').scrollLeft += num; setTimeout('CompScr()',Speed); } } //--><!]]> </script> </body> </html>
发表评论
-
jquery多函数执行
2014-01-07 15:33 9001、Array.prototype.slice.apply ... -
js关闭浏览器兼容性问题
2013-09-13 10:23 7271、ie,chrome下面代码都可以 window.ope ... -
jquery弹框插件(自定义easy-box)
2013-08-30 14:39 9671、插件代码easy-box.js $.ext ... -
50个jQuery代码段帮你成为更出色的JS开发者
2013-08-29 15:06 8690. 如何创建嵌套的过滤器: -
jquery验证插件进一步进行封装(easy-check)
2013-07-29 14:48 21661、easy-check.js,核心代码如下(要运行dem ... -
php echo jquery代码
2013-07-09 11:30 1460话不多少,直接贴上代码 echo "<sc ... -
用户图上传从本地加载图片,兼容ie6+,chrome,firefox
2012-11-24 17:26 784直接上代码 写道 <!DOCTYPE htm ... -
既可输入也可以选择的(input+select)兼容ie6+,chrome,firefox
2012-11-24 17:25 1165直接上代码 <html> <hea ... -
js或jquery导致ie6下,gif卡帧(不动)
2012-11-21 14:01 3064IE6下当JS触发GIF格式图片时,经常会出现GIF图片动几下 ... -
js解决IE遮罩层无法遮罩select
2012-11-07 15:23 8931、包含js (function(a){a.fn.bg ... -
div固定顶部或底部,IE下postion:fixed问题
2012-11-07 14:14 793像你所遇到的问题一样, IE6浏览器有太多的bug让制作 ... -
公告连续滚动js
2012-11-05 13:46 2107<!DOCTYPE html PUBLIC " ... -
jquery获取各种高度
2012-09-19 20:57 11511alert($(window).height()); ... -
ie6下js的onmouseover和onmouseout事件连续触发问题的解决方法
2012-09-17 11:23 851解决HTML内部元素的Mouse ... -
jquery设置select选中,获取select选中的值 和文本
2012-09-11 17:03 1748选中select选项,根据value var pid ... -
jquery图片剪切(插件)
2012-09-09 12:28 1803我用过的jquery图片剪切插件有jcrop, imgsel ... -
jquery 监听input输入值事件
2012-08-22 17:24 18409<html> <head&g ... -
jquery 可扩展滚动移动demo
2012-08-06 22:53 1018<!DOCTYPE html PUBLIC &qu ... -
jquery 设置select选中
2012-08-02 10:01 774jquery代码 $(document).rea ... -
jquery ajax之函数里面ajax请求,不能返回return 值
2012-07-31 21:45 2695代码 代码如下: fu ...
相关推荐
基于Jquery图片点击上下滚动效果,代码比较简单也比较简洁。
jquery模拟腾讯网左右图片焦点图切换代码,简洁透明的效果,支持焦点切换与left、right切换,支持手机网页和PC端网页制作的图片自动切换。热爱jquery切换效果的你可不要错了哈,希望本例对你有所帮助
图片左右滚动的jQuery焦点图轮播代码,点击左右按钮可控制图片切换,整体风格设计简洁自然,图片格式为PNG,当然其它格式也可以,只要和背景搭配就可以。
这是一款带有左右箭头按钮控制的jQuery图片滚动切换特效,代码简洁易用,图片滚动时有动感效果。
jquery图片滚动效果,制作一个非常大气简洁的banner焦点图满屏左右滚动切换效果,点击左右两侧按钮控制图片满屏滚动切换
图片滚动 jQuery图片滚动代码,带左右按钮控制图片左右滚动,漂亮实用的网页图片滚动代码,点击一下向左整体滚动,支持自动间隔时间自动滚动,很有门户风格的图片滚动效果,适合大部分网站使用,而且代码简洁,兼容...
唯美图片切换 jquery左右滚动图片轮显,看上去十分简洁唯美的图片特效,虽然只有左右两侧可控制图片切换,不过这种效果带来的视觉感受很不一样,图片上还加入了阴影效果,更具立体感,搭配白色的网页背景,我想是最...
特点:轻巧、方便修改使用、代码简洁。 使用方法 1、复制代码到你需要的地方,且依次引入jquery库以及tinyscrollbar插件即可。 2、然后在网页底部直接按照此代码调用库中的效果即可 $('#scrollbar').tiny...
jQuery图片左右滑动鼠标悬停放大效果是一个非常简洁易用的jQuery图片放大效果,主要使用jQuery的animate方法实现 没有使用css3代码,支持左右点击滚动,兼容主流浏览器
一个非常简洁易用的jQuery图片放大效果,主要使用jQuery的animate方法实现 没有使用css3代码,支持左右点击滚动,兼容主流浏览器 使用方法: 1、在你的网页中引入lanren.js文件 2、将index.html中...
js无缝图片滚动完整代码下载,分别包括水平和垂直滚动,滚动效果平滑,可适用于网页上的图片新闻滚动和纵向图片滚动,无使用jQuery,代码简洁,示例完整。
jQuery图片左右滑动鼠标悬停放大效果是一个非常简洁易用的jQuery图片放大效果,主要使用jQuery的animate方法实现 没有使用css3代码,支持左右点击滚动,兼容主流浏览器
简洁易懂的代码,实现了图片或是文字向各个方面滚动的效果,有从右向左滚动,从左向右滚动,从上向下滚动及从下向上滚动。 整理后的代码只需求更改scroll.js中的speed值就可以轻松实现不同速度的滚动.
一、J Query实例大全 ...一款使用jQuery左右控制横向图片滚动的代码 77.一款基于jquery定时图片切换代码下载 78.一款实用经典jQuery图片切换展示插件下载 79.下载jQuery动感广告图片翻转插件(PictureRoll)...
jquery模拟腾讯网左右图片焦点图切换代码,简洁透明的效果,懒人之家推荐下载
html5+jquery 写的一个横向滚动条,通熟易懂,很实用,而且是自适应的,代码简洁,即使是初学者也可以看懂
基于jQuery实现的简洁实用的横向图片滚动焦点图插件源码.zip
jquery左右滚动切换是一款模拟腾讯网左右图片焦点图切换代码,简洁透明的效果。
tab标签代码,切换时主要内容支持左右滚动效果,代码简洁方便修改
横向滚动jQuery导航代码是一款仿FLASH效果的滑动导航菜单代码,站长素材推荐下下载。