Jquery Problems With The Navigation of Moleskine NoteBook Plugin
Hi Guys,I have problems with the buttons of this Plugin(Moleski NoteBook with Jquery).I stay using the normal code
http://tympanus.net/Tutorials/MoleskineNotebook/MoleskineNotebook.zip?84cd58 of the demo,but I like modify the buttons for create a menu with the effect of Moleski NoteBook with Jquery in the firts page.So I like create buttons for change of each page,I believed that I can change of page of this mode <div id="page01"></div> and on the <a href="#page01">1</a> , but this is not true.
My Question is What I Should to do for create a Menu With The Effect of the Plugin on the Firts page and for change of each Page with The Effect of
Moleski NoteBook Jquery Plugin?
This is My Code:
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <script src="js/jquery-1.4.4.min.js"></script>
- <script src="js/jquery.easing.1.3.js" type="text/javascript"></script>
- <script src="js/jquery.booklet.1.1.0.min.js" type="text/javascript"></script>
- <link href="css/jquery.booklet.1.1.0.css" type="text/css" rel="stylesheet" media="screen" />
- <link rel="stylesheet" href="css/style.css" type="text/css" media="screen"/>
- <link rel="stylesheet" type="text/css" href="css/reset.css">
- <script src="js/cufon-yui.js" type="text/javascript"></script>
- </head>
- <body>
- <div class="book_wrapper">
- <div id="loading" class="loading">Loading pages...</div>
- <div id="mybook" style="">
- <div class="b-load">
- <div>
-
- <h2>Proyects</h2>
- <ul>
- <li><a href="#page01"> <img src="images/1.jpg" width="112" height="82"></a></li>
- <li><a href="#page01"> <img src="images/2.jpg" width="112" height="82" style="top:-20px;"></a></li>
- <li><a href="#page02"><img src="images/3.jpg" width="112" height="82"></a></li>
- <li><a href="#page02"><img src="images/4.jpg" width="112" height="82"></a></li>
- </ul>
- <p> The user can scroll through the thumbnails
- by using the slider controls. When a thumbnail is clicked,
- it moves to the center and the full image preview opens.</p>
- </div>
- <div id="#page01">
- <img src="images/2.jpg" alt="" />
- <h2>Proyecto 01</h2>
- <p>Today we will create an animated portfolio gallery with jQuery.
- The gallery will contain a scroller for thumbnails and a
- content area where we will display details about the portfolio
- item. The image can be enlarged by clicking on it, making
- it appear as an overlay.</p>
- <a href="#" target="_blank" class="article">Article</a>
- <a href="#" target="_blank" class="demo">Demo</a>
- </div>
- <div id="#page01">
- <img src="images/3.jpg" alt="" />
- <h2>Proyecto 02</h2>
- <p>Today we will create a simple overlay effect to display annotations in e.g. portfolio
- items of a web designers portfolio. We got the idea from the wonderful
- portfolio of www.rareview.com where Flash is used to create the
- effect. We will use jQuery.</p>
- <a href="#" target="_blank" class="article">Article</a>
- <a href="#" target="_blank" class="demo">Demo</a>
- </div>
- <div id="#page02">
- <img src="images/4.jpg" alt="" />
- <h2>Proyecto 03</h2>
- <p>In this tutorial we will create a bubbly image gallery that
- shows your images in a unique way. The idea is to show the
- thumbnails of albums in a rounded fashion allowing the
- user to scroll them automatically by moving the mouse.
- Clicking on a thumbnail will zoom in a big circle and
- the full image which will be automatically resized to
- fit into the screen.</p>
- <a href="#" target="_blank" class="article">Article</a>
- <a href="#" target="_blank" class="demo">Demo</a>
- </div>
- <div id="#page02">
- <img src="images/5.jpg" alt="" />
- <h2>Proyecto 04</h2>
- <p>Today we will create a collapsing menu that contains vertical
- navigation bars and a slide out content area. When hovering
- over a menu item, an image slides down from the top and a
- submenu slides up from the bottom. Clicking on one of the
- submenu items will make the whole menu collapse like a card
- deck and the respective content area will slide out.</p>
- <a href="#" target="_blank" class="article">Article</a>
- <a href="#" target="_blank" class="demo">Demo</a>
- </div>
- </div>
- </div>
- </div>
- <!-- The JavaScript -->
- <script type="text/javascript">
- $(function() {
- var $mybook = $('#mybook');
- var $bttn_next = $('#next_page_button');
- var $bttn_prev = $('#prev_page_button');
- var $loading = $('#loading');
- var $mybook_images = $mybook.find('img');
- var cnt_images = $mybook_images.length;
- var loaded = 0;
- //preload all the images in the book,
- //and then call the booklet plugin
- $mybook_images.each(function(){
- var $img = $(this);
- var source = $img.attr('src');
- $('<img/>').load(function(){
- ++loaded;
- if(loaded == cnt_images){
- $loading.hide();
- $bttn_next.show();
- $bttn_prev.show();
- $mybook.show().booklet({
- name: null, // name of the booklet to display in the document title bar
- width: 800, // container width
- height: 500, // container height
- speed: 600, // speed of the transition between pages
- direction: 'LTR', // direction of the overall content organization, default LTR, left to right, can be RTL for languages which read right to left
- startingPage: 0, // index of the first page to be displayed
- easing: 'easeInOutQuad', // easing method for complete transition
- easeIn: 'easeInQuad', // easing method for first half of transition
- easeOut: 'easeOutQuad', // easing method for second half of transition
- closed: true, // start with the book "closed", will add empty pages to beginning and end of book
- closedFrontTitle: null, // used with "closed", "menu" and "pageSelector", determines title of blank starting page
- closedFrontChapter: null, // used with "closed", "menu" and "chapterSelector", determines chapter name of blank starting page
- closedBackTitle: null, // used with "closed", "menu" and "pageSelector", determines chapter name of blank ending page
- closedBackChapter: null, // used with "closed", "menu" and "chapterSelector", determines chapter name of blank ending page
- covers: false, // used with "closed", makes first and last pages into covers, without page numbers (if enabled)
- pagePadding: 10, // padding for each page wrapper
- pageNumbers: true, // display page numbers on each page
- hovers: false, // enables preview pageturn hover animation, shows a small preview of previous or next page on hover
- overlays: true, // enables navigation using a page sized overlay, when enabled links inside the content will not be clickable
- tabs: false, // adds tabs along the top of the pages
- tabWidth: 60, // set the width of the tabs
- tabHeight: 20, // set the height of the tabs
- arrows: false, // adds arrows overlayed over the book edges
- cursor: 'pointer', // cursor css setting for side bar areas
- hash: false, // enables navigation using a hash string, ex: #/page/1 for page 1, will affect all booklets with 'hash' enabled
- keyboard: true, // enables navigation with arrow keys (left: previous, right: next)
- next: $bttn_next, // selector for element to use as click trigger for next page
- prev: $bttn_prev, // selector for element to use as click trigger for previous page
- menu: null, // selector for element to use as the menu area, required for 'pageSelector'
- pageSelector: false, // enables navigation with a dropdown menu of pages, requires 'menu'
- chapterSelector: false, // enables navigation with a dropdown menu of chapters, determined by the "rel" attribute, requires 'menu'
- shadows: true, // display shadows on page animations
- shadowTopFwdWidth: 166, // shadow width for top forward anim
- shadowTopBackWidth: 166, // shadow width for top back anim
- shadowBtmWidth: 50, // shadow width for bottom shadow
- before: function(){}, // callback invoked before each page turn animation
- after: function(){} // callback invoked after each page turn animation
- });
- Cufon.refresh();
- }
- }).attr('src',source);
- });
-
- });
- </script>
- </body>
- </html>