I'm trying to run two different scripts, but only one will work at a time. If Code 1 and 2 are on the same page only one works. How can I make them work on the same page?
Code 1
<script src="lib/jquery-1.5.2.min.js"></script>
<script src="lib/jquery.peelback.js"></script>
<script>
$(function() {
$('body').peelback({
adImage : 'images/peel-ad.png',
peelImage : 'images/peel-image.png',
clickURL : 'http://www.thebestdinosaur.com/',
smallSize: 150,
bigSize: 500,
gaTrack : true,
gaLabel : '#1 Stegosaurus',
autoAnimate: true
});
});
</script>
Code 2
<script src="lib/jquery.min.js" type="text/javascript"></script>
<script src="lib/jquery.nivo.slider.pack.js" type="text/javascript"></script>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>