Hey All,
I have a question regarding Lightbox and another jQuery script (smooth scrolling) I'm trying to run on the same page. I have installed Lightbox v2.04 successfully on my page (it has not been published online yet). However, I am trying to add jQuery's smooth scrolling to my page as well. I did both of these successfully on their own, but when the two are put together, Lightbox crashes when I installed smooth scrolling. When I tried removing the smooth scrolling, Lightbox worked again. Basically, the scripts appear to be crashing into each other and only one supercedes (smooth scrolling). These are the two scripts within my head tag:
This is the one for Lightbox:
<script type="text/javascript" src="lightbox2.04/js/prototype.js"></script>
<script type="text/javascript" src="lightbox2.04/js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="lightbox2.04/js/lightbox.js"></script>
And this is the one for Smooth Scrolling (where Lightbox does NOT crash if I remove the first two lines, but obviously smooth scrolling no longer works again - not sure if that helps at all).
<script type="text/javascript" src="js_smooth_scrolling/jquery-1.3.2.js"></script>
<script type="text/javascript" src="js_smooth_scrolling/jquery.smoothanchors2.js"></script>
<script>
$(document).ready(function(){
$.smoothAnchors("normal");
});
</script>-->
I appreciate anyone's help on the matter! Thanks so much!
I have a question regarding Lightbox and another jQuery script (smooth scrolling) I'm trying to run on the same page. I have installed Lightbox v2.04 successfully on my page (it has not been published online yet). However, I am trying to add jQuery's smooth scrolling to my page as well. I did both of these successfully on their own, but when the two are put together, Lightbox crashes when I installed smooth scrolling. When I tried removing the smooth scrolling, Lightbox worked again. Basically, the scripts appear to be crashing into each other and only one supercedes (smooth scrolling). These are the two scripts within my head tag:
This is the one for Lightbox:
<script type="text/javascript" src="lightbox2.04/js/prototype.js"></script>
<script type="text/javascript" src="lightbox2.04/js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="lightbox2.04/js/lightbox.js"></script>
And this is the one for Smooth Scrolling (where Lightbox does NOT crash if I remove the first two lines, but obviously smooth scrolling no longer works again - not sure if that helps at all).
<script type="text/javascript" src="js_smooth_scrolling/jquery-1.3.2.js"></script>
<script type="text/javascript" src="js_smooth_scrolling/jquery.smoothanchors2.js"></script>
<script>
$(document).ready(function(){
$.smoothAnchors("normal");
});
</script>-->
I appreciate anyone's help on the matter! Thanks so much!