Introduction to the booklet jquery plugin series

Source: Internet
Author: User

Booklet jquery plug-in series introduction one, install 1, add CSS and JavaScript

Add booklet CSS files to your page.

<rel= "stylesheet"  href= "plugin/booklet/ Jquery.booklet.latest.css "  media=" Screen,projection,tv ">

Then add the jquery library in turn, jquery UI (optional) jquery easing plugin and booklet JS file to your page.

<!--JQuery--
<Scripttype= "Text/javascript"src= "Plugin/booklet/jquery-2.1.0.min.js"></Script> <!--jQuery UI (optional) - <Scripttype= "Text/javascript"src= "Plugin/booklet/jquery-ui-1.10.4.min.js"></Script> <!--Booklet - <Scripttype= "Text/javascript"src= "Plugin/booklet/jquery.easing.1.3.js"></Script> <Scripttype= "Text/javascript"src= "Plugin/booklet/jquery.booklet.latest.min.js"></Script>
2,Create content

First create an area block in the content area

1 . Create a container outside <div> and define an ID or class.

2 . Inside the container, add the page. Each page added here will be recognized as each slide, which can contain content or individual items.

A simple example is shown below:

    <DivID= "MyBook">        <Div>            <H3>Yay, Page 1!</H3>        </Div>        <Div>            <H3>Yay, Page 2!</H3>        </Div>        <Div>            <H3>Yay, Page 3!</H3>        </Div>        <Div>            <H3>Yay, Page 4!</H3>        </Div>        <Div>            <H3>Yay, Page 5!</H3>        </Div>        <Div>            <H3>Yay, Page 6!</H3>        </Div>    </Div>
3. Initialize Booklet

Use jquery to select Initialize booklet. You can set multiple books to the same class or the same selector as long as their options are the same.

Learn more about customizing settings to access the document (http://builtbywill.com/code/booklet/documentation) page

    <Scripttype= "Text/javascript">        $(function(){            // Single Book            $('#mybook'). booklet (); //multiple books with ID ' s            $('#mybook1, #mybook2'). booklet (); //multiple books with a class            $('. Mycustombooks'). booklet ();        }); </Script>

Run

Introduction to the booklet jquery plugin series

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.