lundi 28 avril 2014

Merge two Jquery scripts


Vote count:

0




I'm not too familiar with JS or jquery so bare with me. I downloaded two scripts from the net,


one looks like this



<script src="jqzoom/js/jquery-1.6.js" type="text/javascript"></script>
<script src="jqzoom/js/jquery.jqzoom-core.js" type="text/javascript"></script>
<link rel="stylesheet" href="jqzoom/css/jquery.jqzoom.css" type="text/css">

<script>
$(function () {
$('.jqzoom').jqzoom({
zoomType: 'standard',
lens:true,
preloadImages: false,
alwaysOn:true
});
});
</script>


and the other



<script src="http://ift.tt/1q8wkLp"></script>
<script> window.jQuery || document.write('<script src="booklet/jquery-2.1.0.min.js"><\/script>') </script>
<script src="http://ift.tt/1pG9Ioa"></script>
<script> window.jQuery.ui || document.write('<script src="booklet/jquery-ui-1.10.4.min.js"><\/script>') </script>
<script src="booklet/jquery.easing.1.3.js"></script>
<script src="booklet/jquery.booklet.latest.js"></script>

<script>
$(function () {
$("#mybook").booklet();
});
</script>


When I place both in one page only the latter works, however individually they work fine.


I understand you can't call Jquery twice within the same page, but when I remove all the jquery additions and just use /jquery.js none of them work. This is the scripts as I downloaded them, I figured the HTML between them is not needed to post here.


How can I make both work on one page?


Thanks



asked 36 secs ago






Aucun commentaire:

Enregistrer un commentaire