I’m using 2 jquery scripts for my Magento store. One of those scripts, a slider works perfectly and the other one doesnt work.
<script type="text/javascript">jQuery.noConflict();jQuery(function($){
function mycarousel_initCallback(carousel)
{
// Disable autoscrolling if the user clicks the prev or next button.
carousel.buttonNext.bind('click', function() {
carousel.startAuto(0);
});
carousel.buttonPrev.bind('click', function() {
carousel.startAuto(0);
});
// Pause autoscrolling if the user moves with the cursor over the clip.
carousel.clip.hover(function() {
carousel.stopAuto();
}, function() {
carousel.startAuto();
});
};
jQuery(document).ready(function() {
jQuery('#mycarousel').jcarousel({
auto: 0,
wrap: 'circular',
animation: 600,
scroll: 6,
initCallback: mycarousel_initCallback
});
$('.block_cart_header').hover(function(){
$('.cart_add_items').fadeIn(700);
},
function(){
$('.cart_add_items').fadeOut(700);
});
});
jQuery(document).ready(function() {
jQuery('.dropdown').selectbox();
}); });</script>
When I remove jQuery.noconflict(); both of the scripts work but the prototype script doesnt work.
This is the script that doesnt work:
jQuery(document).ready(function() {
jQuery('.dropdown').selectbox();}); });</script>
You need to replace all
$(intojQuery(and$.intojQuery.in jQuery related functions and plugins.for example in your code replace
Extra information
You may change the order of library file initiating.
In page.xml change order as below
This will avoid the error in IE8.
Hope this helps