手册网
参考手册
在线工具
在线文档
在线代码
素材大全
推荐
导航
在线手册 »
WEB优质项目
开放平台
工具软件
CSS3.0中文手册
jQuery 1.8 参考手册
HTML4参考手册
HTML基础手册
HTML快速参考手册
MySQL5.1中文参考手册
JavaScript参考手册
Delphi6函数大全
Delphi7参考手册
SQL基础教程
jQuery 1.10 中文参考手册
CSS2 参考手册
ASP参考手册
C/C++中文手册
django中文教程
DOS命令大全
jQueryEasyUI1.3中文手册
Hibernate3.2中文参考文档
Html4.01参考手册
JAVA学习笔记
JSP中文教程
Linux参考手册
Lua5参考手册
Oracle参考手册
Phpcmsv9二次开发手册
phpwind二次开发手册
PostgreSQL参考手册
Python2中文手册
Spring2.5中文参考手册
XML参考手册
正则表达式参考手册
jQuery 1.11.3 中文参考手册
ThinkPHP3.2.2完全开发手册
ThinkPHP3.2.3完全开发手册
yii1和php5开发
ThinkPHP5.0完全开发手册
jQuery 3.1 参考手册
Underscore1.8.3 参考手册
Swift3 中文手册
Sass 3.4.21 中文手册
Backbone.js 1.1.2 API中文文档
JSDoc 参考手册
Webpack 2.2 中文文档
JavaScript 全栈教程
Nginx 中文官方手册
CSS4.2.4 参考手册
ThinkPHP5.1完全开发手册.CHM
HTML/CSS »
Html
Bootstrap
HTML5
CSS
CSS3
Foundation
JavaScript »
JavaScript
jQuery
HTML DOM
AngularJS
jQuery UI
jQuery EasyUI
Node.js
JSON
Highcharts
AJAX
React
jQuery插件大全
AlloyUI
Vue.js v2.0 中文
Vuex
vue-router
Underscore.js
Zepto.js
程序设计 »
PHP
Java
JSP
Python
Python3
Django
Linux
Ruby
C
C++
Servlet
Lua
Go
设计模式
正则表达式
ASP
AppML
VBScript
Scala
数据库 »
SQL
MySQL
SQLite
MongoDB
Redis
Memcached
移动端 »
jQuery Mobile
Android
ionic
IOS
Sencha Touch
Clouda+
efe
Frozen UI
Amaze UI
CardKit
App.js
Mobile Angular UI
Kendo UI
PhoneGap
Framework7
Junior
Jingle
mui
SUI Mobile
ReactNative
Weex
APICloud
Wex5
Ratchet
HTML5plus
Plane UI
Swift 教程
XML 教程 »
XML
DTD
XML DOM
XSLT
XPath
XQuery
XLink
XML Schema
XSLFO
SVG
ASP.NET »
ASP.NET
C#
开发工具 »
Eclipse
Git
Firebug
SVN 教程
Chrome 控制台
开源项目 »
Yii中文参考手册
Yii1开发教程
Yii2开发教程
ThinkPHP3.1开发教程
ThinkPHP3.2.3开发教程
地图开发
Wordpress
Laravel中文文档
Web Service »
Web Service 教程
WSDL 教程
SOAP 教程
RDF 教程
RSS 教程
转码工具 »
HTML/JavaScript格式化
CSS 格式化/压缩
JS格式化/加密/压缩
Native互换Unicode大全
日期格式化工具
Markdown转HTML
CSS 整理压缩
JSON 在线解析
短网址生成
代码处理 »
进制互换大全
16进制互换RGB
简体转繁体
汉字转拼音
小写转大写
大写转小写
加密和解密
繁体转简体
实用工具 »
Bootstrap图标定制
CSS 颜色选择器
字数统计
正则表达式测试
htpasswd 生成器
全世界数据库
IP归属地查询
实用计算器
生成二维码
ICO图标制作
CSS3 气泡对话框
CSS & JS Hack 大全
CSS3 背景渐变色生成器
CSS3 阴影边框生成器
CSS3 动画工具
Web 常用字体演示
CSS3 选择器演示
CSS 中文字体 Unicode 编码表
CSS3 GitHub Buttons
CSS Webkit 自定义滚动条样式
在线自动分词
ionic图标
阿里巴巴矢量图标库
IcoMoon 图标库
CSS3 代码生成
CSS3 Flexbox 演示
便民工具 »
快递查询
安全期计算器
周公解梦
笑话大全
常用对照表 »
HTTP Content-type 详细对照表
HTML特殊转义字符对照表
ASCII对照表
HTTP状态码详解
运算符优先级
TCP/UDP常见端口参考
经典小游戏 »
像素小鸟
爱消除
飞更高
俄罗斯方块
台球
贪吃蛇
拼图魔方
坦克大战
解救公主
中国象棋
压扁小鸟
打飞字
Flappy小鸟
登陆
实例代码
“Ctrl+/”
提示
“F11/ESC”
全屏
返回
格式化
恢复
运行
<!DOCTYPE html> <html lang="en"> <head> <title>jScrollPane滚动条隐藏</title> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="author" content="Codrops" /> <link rel="shortcut icon" href="../favicon.ico"> <link rel="stylesheet" type="text/css" href="/api/jq/5733e35517d78/css/demo.css" /> <link rel="stylesheet" type="text/css" href="/api/jq/5733e35517d78/css/style.css" /> <link rel="stylesheet" type="text/css" href="/api/jq/5733e35517d78/css/jquery.jscrollpane.codrops2.css" /> <script src="http://libs.baidu.com/jquery/1.6.4/jquery.min.js"></script> <!-- the mousewheel plugin --> <script type="text/javascript" src="/api/jq/5733e35517d78/js/jquery.mousewheel.js"></script> <!-- the jScrollPane script --> <script type="text/javascript" src="/api/jq/5733e35517d78/js/jquery.jscrollpane.min.js"></script> <script type="text/javascript" src="/api/jq/5733e35517d78/js/scroll-startstop.events.jquery.js"></script> </head> <body> <div class="container"> <h1>滚动条隐藏</h1> <div class="wrapper"> <div class="content"> <p><strong>Example 2</strong> is the simplest case: it shows how to show/hide the scrollbar on hovering/leaving the content area. </div> <div id="jp-container" class="jp-container"> <a href="#"> <img src="/api/jq/5733e35517d78/images/thumbs/16.jpg"/> <div> <h3>Responsive Image Gallery with Thumbnail Carousel</h3> A tutorial on how to create a responsive image gallery with a thumbnail carousel using Elastislide. Inspired by Twitter's "user gallery" and upon a request to show an integration of Elastislide, we want to implement a responsive gallery that adapts to the view-port width. The gallery will have a view switch that allows to view it with the thumbnail carousel or without. We'll also add the possibility to navigate with the keyboard. </div> </a> <a href="#"> <img src="/api/jq/5733e35517d78/images/thumbs/15.jpg"/> <div> <h3>Elastislide - A Responsive jQuery Carousel Plugin</h3> With the responsive awakening in web design it becomes important to not only take care of the visual part of a website but also of the functionality. Elastislide is a responsive jQuery carousel that will adapt its size and its behavior in order to work on any screen size. Inserting the carousels structure into a container with a fluid width will also make the carousel fluid. </div> </a> <a href="#"> <img src="/api/jq/5733e35517d78/images/thumbs/14.jpg"/> <div> <h3>Slicebox - A fresh 3D image slider with graceful fallback</h3> With the CSS3 3D transformations we can create some neat effects by transforming elements in three-dimensional space. Slicebox makes use of the 3D transforms properties and allows different kind of effects. The main idea is to create three-dimensional image slices that will rotate and reveal the next image as another side of the 3d object. In case the browser does not support 3D transformations, a simple slider will be used as fallback. </div> </a> <a href="#"> <img src="/api/jq/5733e35517d78/images/thumbs/13.jpg"/> <div> <h3>Automatic Image Montage with jQuery</h3> Arranging images in a montage like fashion can be a challenging task when considering certain constraints, like the window size when using fullscreen, the right image number to fill all the available space or also the size of the images in use. With the following script you can automatically create a montage, either for a liquid container or a fixed size container (including fullscreen), with the option to fill all the gaps. </div> </a> <a href="#"> <img src="/api/jq/5733e35517d78/images/thumbs/12.jpg"/> <div> <h3>Image Zoom Tour with jQuery</h3> Today we want to share a little zoom tour script with you. Showing a main image initially, we want to be able to zoom into certain parts of the image by clicking on tags, using another image for the closer view. This next step can contain other tags that again allow to show more images. </div> </a> <a href="#"> <img src="/api/jq/5733e35517d78/images/thumbs/11.jpg"/> <div> <h3>Circular Content Carousel with jQuery</h3> Today we want to share a simple circular content carousel with you. The idea is to have some content boxes that we can slide infinitely (circular). When clicking on the more link, the respective item moves to the left and a content area will slide out. Now we can navigate through the carousel where each step will reveal the next or previous content box with its expanded content. </div> </a> <a href="#"> <img src="/api/jq/5733e35517d78/images/thumbs/10.jpg"/> <div> <h3>Portfolio Image Navigation with jQuery</h3> Today we want to create a portfolio image navigation template with jQuery. The idea is to show some portfolio items in a grouped fashion and navigate through them in all 2D ways (horizontal/vertical). Either the arrows or the little boxes below the current image can be used in order to navigate. </div> </a> <a href="#"> <img src="/api/jq/5733e35517d78/images/thumbs/9.jpg"/> <div> <h3>Expanding Fullscreen Grid Portfolio</h3> Today we want to share a neat experimental portfolio template with you. The main idea is to have a grid layout that we create with jQuery Masonry. Clicking to view more, we expand the according item to fullscreen in order to show a longer description of the item and a representative fullscreen background image. </div> </a> <a href="#"> <img src="/api/jq/5733e35517d78/images/thumbs/8.jpg"/> <div> <h3>Content Rotator with jQuery</h3> Today we want to share a fancy content rotator with you. It shows some image with a headline and sub-headline in each slide and allows navigating through the slides using the thumbnails that also contain a headline. Hiding the thumbnails will reveal a scrollable text container and the navigation arrows will move up so that one can navigate to the previous or next slides. </div> </a> <a href="#"> <img src="/api/jq/5733e35517d78/images/thumbs/7.jpg"/> <div> <h3>Vertical Sliding Accordion with jQuery</h3> Today we want to share a slick and flexible vertical jQuery accordion with you. The main idea is to expand the accordion slices on click and show some more information. The other slices will become less opaque and squeezed. When navigating to the next slice using one navigation arrows, a new slice will slide in from the top or the bottom. Once a slice is open and we navigate, the subsequent slice will open on slide. </div> </a> <a href="#"> <img src="/api/jq/5733e35517d78/images/thumbs/6.jpg"/> <div> <h3>Animated Text and Icon Menu with jQuery</h3> Today we want to show you how to create a slick menu with a nice animation feature on hover. The idea is to make some elements slide out, change and animate the background color of the item and then slide the elements back in with a different color. </div> </a> <a href="#"> <img src="/api/jq/5733e35517d78/images/thumbs/5.jpg"/> <div> <h3>Fullscreen Slideshow with HTML5 Audio and jQuery</h3> In today's tutorial we'll create a fullscreen photo slideshow to illustrate a New York picture series. We will add sounds with the HTML5 audio element in order to give life to the gallery and try to recreate the ambient of this vibrant city. </div> </a> <a href="#"> <img src="/api/jq/5733e35517d78/images/thumbs/4.jpg"/> <div> <h3>Sliding Background Image Menu with jQuery</h3> Today we want to share another jQuery menu with you. This menu will have several panels, each one corresponding to a different background image that will show on all panels when we hover over a panel label. Also, a submenu will slide out from the bottom. This menu comes with some configuration possibilities, such as the size of the image, the hover effect and custom default states. </div> </a> <a href="#"> <img src="/api/jq/5733e35517d78/images/thumbs/3.jpg"/> <div> <h3>Grid Navigation Effects with jQuery</h3> Today we want to share some neat grid navigation effects using jQuery. In our examples we will show you ten ways how to navigate through a set of thumbnails. We'll take a look at some of the possibilities and how to apply the effect. </div> </a> <a href="#"> <img src="/api/jq/5733e35517d78/images/thumbs/2.jpg"/> <div> <h3>Image Wall with jQuery</h3> Today we want to show you how to create a neat image wall with jQuery. The idea is to scatter some thumbnails with different sizes on the page and make a ribbon slide in when we click on the picture. The ribbon will show some description next to the picture and when clicking again on the thumbnail, the ribbon will close and open again with a large version of the image. </div> </a> <a href="#"> <img src="/api/jq/5733e35517d78/images/thumbs/1.jpg"/> <div> <h3>Sliding Letters with jQuery</h3> Today we have a neat little effect for you. We want to bring some life to the standard hover effect by playing around with the letters in an anchor word. The aim is to slide in letter by letter when hovering over a link element. We can either have the same word or a different one and we can slide in the new letters all the same time or one after the other. </div> </a> </div> <div class="clr"></div> </div> </div> <div class="more"> <ul id="sb-examples"> <li>More examples:</li> <li><a href="index.html">Example 1</a></li> <li class="selected"><a href="index2.html">Example 2</a></li> </ul> </div> </div> <script type="text/javascript"> $(function() { // the element we want to apply the jScrollPane var $el = $('#jp-container').jScrollPane({ verticalGutter: -16 }), // the extension functions and options extensionPlugin = { extPluginOpts: { // speed for the fadeOut animation mouseLeaveFadeSpeed: 500, // scrollbar fades out after hovertimeout_t milliseconds hovertimeout_t: 1000, // if set to false, the scrollbar will be shown on mouseenter and hidden on mouseleave // if set to true, the same will happen, but the scrollbar will be also hidden on mouseenter after "hovertimeout_t" ms // also, it will be shown when we start to scroll and hidden when stopping useTimeout: false, // the extension only applies for devices with width > deviceWidth deviceWidth: 980 }, hovertimeout: null, // timeout to hide the scrollbar isScrollbarHover: false, // true if the mouse is over the scrollbar elementtimeout: null, // avoids showing the scrollbar when moving from inside the element to outside, passing over the scrollbar isScrolling: false, // true if scrolling addHoverFunc: function() { // run only if the window has a width bigger than deviceWidth if ($(window).width() <= this.extPluginOpts.deviceWidth) return false; var instance = this; // functions to show / hide the scrollbar $.fn.jspmouseenter = $.fn.show; $.fn.jspmouseleave = $.fn.fadeOut; // hide the jScrollPane vertical bar var $vBar = this.getContentPane().siblings('.jspVerticalBar').hide(); /* * mouseenter / mouseleave events on the main element * also scrollstart / scrollstop - @James Padolsey : http://james.padolsey.com/javascript/special-scroll-events-for-jquery/ */ $el.bind('mouseenter.jsp', function() { // show the scrollbar $vBar.stop(true, true).jspmouseenter(); if (!instance.extPluginOpts.useTimeout) return false; // hide the scrollbar after hovertimeout_t ms clearTimeout(instance.hovertimeout); instance.hovertimeout = setTimeout(function() { // if scrolling at the moment don't hide it if (!instance.isScrolling) $vBar.stop(true, true).jspmouseleave(instance.extPluginOpts.mouseLeaveFadeSpeed || 0); }, instance.extPluginOpts.hovertimeout_t); }).bind('mouseleave.jsp', function() { // hide the scrollbar if (!instance.extPluginOpts.useTimeout) $vBar.stop(true, true).jspmouseleave(instance.extPluginOpts.mouseLeaveFadeSpeed || 0); else { clearTimeout(instance.elementtimeout); if (!instance.isScrolling) $vBar.stop(true, true).jspmouseleave(instance.extPluginOpts.mouseLeaveFadeSpeed || 0); } }); } }, // the jScrollPane instance jspapi = $el.data('jsp'); // extend the jScollPane by merging $.extend(true, jspapi, extensionPlugin); jspapi.addHoverFunc(); }); </script> </body> </html>