Jainy Posted January 26, 2013 Share Posted January 26, 2013 Okay. So I am new to jquery and JS. I am having an issue with my website now. I wanted to put in a peel back effect(Google for "jQuery Peel Back" to see the one which I am using). Now the problem is my website uses prettyPhoto slider and because of this, the peelback is conflicting with the slider on load hence resulting in disappearing of the entire slider and top navigation. It loads all fine locally. But it doesn't work when I put it online. Here's the script code below for the jQuery Peel-back effect. <script src="/assets/jquery-1.5.2.min.js"></script> <script src="jquery.peelback.js"></script> <script> $(document).ready(function() { $('body').peelback({ adImage : 'images/peel-ad.png', peelImage : 'assets/peel-image.png', clickURL : '#', smallSize: 50, bigSize: 500, gaTrack : true, gaLabel : '#1 Stegosaurus', autoAnimate: true }); }); </script> And this is the function that loads the slider animation on load - <body onload="load_animations()"> Here's what it was before I used the peel code and this is what it is after I put the peel code. Quote Link to comment https://forums.phpfreaks.com/topic/273656-issues-with-peel-back-and-slider/ Share on other sites More sharing options...
trq Posted January 26, 2013 Share Posted January 26, 2013 A link to the site perhaps? Quote Link to comment https://forums.phpfreaks.com/topic/273656-issues-with-peel-back-and-slider/#findComment-1408338 Share on other sites More sharing options...
Jainy Posted January 26, 2013 Author Share Posted January 26, 2013 It's https://edenhost.com/ I removed the peel script code on the home page so that it doesn't screw up my entire page. But it is still present on other pages. Quote Link to comment https://forums.phpfreaks.com/topic/273656-issues-with-peel-back-and-slider/#findComment-1408343 Share on other sites More sharing options...
trq Posted January 26, 2013 Share Posted January 26, 2013 Care to a link to a page that actually has an example of your issue then? Quote Link to comment https://forums.phpfreaks.com/topic/273656-issues-with-peel-back-and-slider/#findComment-1408348 Share on other sites More sharing options...
Jainy Posted January 26, 2013 Author Share Posted January 26, 2013 Here you go - http://edenhost.com/index2.php Quote Link to comment https://forums.phpfreaks.com/topic/273656-issues-with-peel-back-and-slider/#findComment-1408364 Share on other sites More sharing options...
trq Posted January 26, 2013 Share Posted January 26, 2013 I don't see any conflict. You do have other errors though. Have you looked at the output of a javascript console? ps: That prettyPhoto script looks like total garbage. Not very well written at all. Quote Link to comment https://forums.phpfreaks.com/topic/273656-issues-with-peel-back-and-slider/#findComment-1408437 Share on other sites More sharing options...
Jainy Posted January 27, 2013 Author Share Posted January 27, 2013 I don't have much clue. As I said, I am new to JS and jQuery. Could you help me figure out what the errors are? Quote Link to comment https://forums.phpfreaks.com/topic/273656-issues-with-peel-back-and-slider/#findComment-1408493 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.