Home > Web Front-end > JS Tutorial > jQuery plug-in PageSlide implements left and right sidebar navigation menu_jquery

jQuery plug-in PageSlide implements left and right sidebar navigation menu_jquery

WBOY
Release: 2016-05-16 16:04:40
Original
1227 people have browsed it

PageSlide, the jQuery left and right sidebar navigation menu plug-in, is currently a popular navigation menu display form, especially on mobile phones or touch screen pages. The effect is still good. It supports custom display directions and menu content. It supports It is recommended to load the page or display the hidden content of this page in a modal pane.

Usage:

1. Load plug-ins and jQuery

<link rel="stylesheet" type="text/css" href="../jquery.pageslide.css" /> 
<script src="../lib/jquery-1.7.1.min.js"></script> 
<script src="../jquery.pageslide.min.js"></script> 
Copy after login

2. How to use

2.1 Right, slide and load content from secondary page

<a href="_secondary.html" class="first">Link text</a> 
<script> 
 $("a.first").pageslide(); 
</script> 
Copy after login

2.2 Slide to the left and display the hidden content of this page in the modal pane

<a href="#modal" class="second"></Link text</a> 
<div id="modal" style="display:none"> 
 <h2>Modal</h2> 
 <a href="javascript:$.pageslide.close()"></Closea> 
</div> 
Copy after login

2.3 Function opening

Copy code The code is as follows:

View demo Plug-in download

The above is the entire content of this article, I hope you all like it.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template