国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

jquery插件jquery.nicescroll實現(xiàn)圖片無滾動條左右拖拽的方法

2019-11-20 11:52:30
字體:
供稿:網(wǎng)友

本文實例講述了jquery插件jquery.nicescroll實現(xiàn)圖片無滾動條左右拖拽的方法。分享給大家供大家參考。具體如下:

這里介紹jQuery圖片左右拖拽特效,無滾動條,將多張圖片組合在一起形成的效果,插件使用的是jquery.nicescroll.js,拖動過程中不會出現(xiàn)滾動條,這樣更美觀了一些,若需要此效果,可參見下邊框中的代碼。

運行效果截圖如下:

具體代碼如下:

<!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><title>jquery.nicescroll無滾動條左右拖拽</title><style>*{ margin:0; padding:0; list-style:none;}img{ border:none;}#boxscroll {height: 313px;width: 900px;margin:0 auto;overflow: auto;}#boxscroll div {width:12570px;}#boxscroll div img {float:left;}.row {background:#FFFFCC;}.row2 {background:#66CCFF;}</style><script src="jquery-1.6.2.min.js"></script><script src="http://xiazai.VeVB.COm/201508/yuanma/jquery.nicescroll.js"></script><script> $(document).ready(function() {  var nicesx = $("#boxscroll").niceScroll("#boxscroll div",{touchbehavior:true,cursorcolor:"#FF00FF",cursoropacitymax:0.6,cursorwidth:24,usetransition:true,hwacceleration:true,autohidemode:"hidden"}); });</script></head><body><div id="boxscroll"> <div> <img src="http://files.VeVB.COm/file_images/article/201508/2015810124458663.jpg" width="1257" height="313" onmousedown="return false" /> <img src="http://files.VeVB.COm/file_images/article/201508/2015810124458663.jpg" width="1257" height="313" onmousedown="return false" /> <img src="http://files.VeVB.COm/file_images/article/201508/2015810124458663.jpg" width="1257" height="313" onmousedown="return false" /> <img src="http://files.VeVB.COm/file_images/article/201508/2015810124458663.jpg" width="1257" height="313" onmousedown="return false" /> <img src="http://files.VeVB.COm/file_images/article/201508/2015810124458663.jpg" width="1257" height="313" onmousedown="return false" /> <img src="http://files.VeVB.COm/file_images/article/201508/2015810124458663.jpg" width="1257" height="313" onmousedown="return false" /> </div></div></div></body></html>

希望本文所述對大家的jquery程序設(shè)計有所幫助。

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 运城市| 西华县| 宁波市| 平南县| 马关县| 阿坝县| 滕州市| 华坪县| 天镇县| 广德县| 尉犁县| 陆河县| 台江县| 凤翔县| 达州市| 马尔康县| 丹棱县| 鸡西市| 鸡东县| 石屏县| 如东县| 海口市| 石河子市| 丹巴县| 博野县| 巴青县| 康马县| 腾冲县| 扬中市| 门头沟区| 常山县| 北京市| 方山县| 亳州市| 汪清县| 黔东| 蒙阴县| 陇川县| 陇川县| 石嘴山市| 如皋市|