Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-04-2013, 10:00 AM   PM User | #1
prachippp
New Coder

 
Join Date: Jun 2011
Posts: 29
Thanks: 2
Thanked 0 Times in 0 Posts
prachippp is an unknown quantity at this point
turn page effect while clicking on link

hi

i want link folllowing link :

http://www.flashmint.com/template-demo-4379.html

if link click by the user page should be turn.

i have following code :

$(function(){

var mag = $('#magazine');

// initiazlie turn.js on the #magazine div
mag.turn();

// turn.js defines its own events. We are listening
// for the turned event so we can center the magazine
mag.bind('turned', function(e, page, pageObj) {

if(page == 1 && $(this).data('done')){
mag.addClass('centerStart').removeClass('centerEnd');
}
else if (page == 6 && $(this).data('done')){
mag.addClass('centerEnd').removeClass('centerStart');
}
else {
mag.removeClass('centerStart centerEnd');
}

});

setTimeout(function(){
// Leave some time for the plugin to
// initialize, then show the magazine
mag.fadeTo(500,1);
},1000);


$(window).bind('keydown', function(e){

// listen for arrow keys

if (e.keyCode == 37){
mag.turn('previous');
}
else if (e.keyCode==39){
mag.turn('next');
}
/*if (e.keyCode == 38){
mag.turn('up');
}
else if (e.keyCode==40){
mag.turn('down');
}*/

});

});


turn.js is get on following link :

http://tutorialzine.com/2012/03/inst...ne-php-jquery/

please help me.
prachippp is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:31 AM.


Advertisement
Log in to turn off these ads.