There is a site where the slider script was on for about three years:
<script type="text/javascript"> var foto = <?php echo get_photo_for_slideshow(); ?> foto = jQuery.shuffle(foto); jQuery(document).ready(function($){ jQuery(".gallery img").fadeTo( 500, 0.5); jQuery(".gallery img").bind("mouseover",function(){ jQuery(this).fadeTo(500,1); }); jQuery(".gallery img").bind("mouseleave",function(){ jQuery(this).fadeTo(500,0.5); }); jQuery(window).bind("resize",function(){ var plotis = -1*Math.round(((2400-$(window).width())/2)); $("#juosta ul ").css("margin-left",plotis+"px"); }); $.each(foto, function(index, value) { $("#juosta ul").append("<li><img id='foto_"+index+"_1' src='/wp-content/plugins/sets/upload/"+value+"' style=\"opacity: 0\"/><img id='foto_"+index+"_2' src=\"/wp-content/plugins/sets/upload/"+value+"\" style=\"opacity: 0\" /></li>"); var time = 500*(index+1); if(index == 0){ var plotis = -1*Math.round(((2400-$(window).width())/2)); $("#juosta ul").css("margin-left",plotis+"px"); } jQuery(document).oneTime(time, function(){ $("#foto_"+index+"_1").animate({ opacity: 1 }, 500, function() { // Animation complete. }); }); }); jQuery(document).everyTime(5000, "base", function(){ foto = jQuery.shuffle(foto); var b = foto.shift(); foto[foto.length] = b; //foto.reverse(); $.each($(foto), function(index, value) { var time = 1000*(index+1); $(document).oneTime(time, function(){ if($("#foto_"+index+"_1").css("opacity")=="1"){ // pirma foto matoma $("#foto_"+index+"_1").animate({opacity: 0},1000); $("#foto_"+index+"_2").attr("src","/wp-content/plugins/sets/upload/"+value).animate({opacity: 1},1000); }else{ // antra foto matoma $("#foto_"+index+"_1").attr("src","/wp-content/plugins/sets/upload/"+value).animate({opacity: 1},1000); $("#foto_"+index+"_2").animate({opacity: 0},1000); } }); }); }); }); </script> Now I want to include the spoiler script: <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> When I I add the script before the spoiler tag starts to work, but the slider disappears. Help me find the cause.
jQuery.noConflict(). - Jean-Claude