I'm trying to add a 'back to top button' and it looks like the javascript/jquery is conflicting with my image slider.
when i add the script towards the end of the body tag, either the image slider or the back to top will not work correctly.
if i place the back to top script before the slider script, the back to top plugin does not appear at all.
if i place the back to top script after the image slider script, the back to top appears and works fine but the image slider does not load the images.
this is the script i added
Code:
<!-- Back To Top jquery -->
<script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
<!-- UItoTop plugin -->
<script src="js/jquery.ui.totop.js" type="text/javascript"></script>
<!-- Starting the plugin -->
<script type="text/javascript">
$(document).ready(function() {
/*
var defaults = {
containerID: 'toTop', // fading element id
containerHoverID: 'toTopHover', // fading element hover id
scrollSpeed: 1200,
easingType: 'linear'
};
*/
$().UItoTop({ easingType: 'easeOutQuart' });
});
</script>
url:
http://thoroprod.com