$(".picimglink").css("text-decoration", "none"); $(".picimglink").bind({ mouseenter: function() { $(this).children("span").animate({ bottom: "0px" }, 500) }, mouseleave: function() { $(this).children("span").clearqueue().animate({ bottom: "-30px" }, 500) } }); var bizhidelayloadimg = $("#bigslideul img"); var bizhidelayloadimglength = bizhidelayloadimg.length; for (var i = 3; i < bizhidelayloadimglength; i++) { var curdelayimg = bizhidelayloadimg.eq(i); if (curdelayimg.attr("srch")) { curdelayimg.attr("src", curdelayimg.attr("srch")); curdelayimg.removeattr("srch") } } var _focus_num = $("#smallslideul > li").length; var _focus_direction = true; var _focus_pos = 0; var _focus_max_length = _focus_num * 1228; var _focus_li_length = 1228; var _focus_dsq = null; var _focus_lock = true; function autoexecanimate() { $("#mypic" + _focus_pos).addclass("info-cur").siblings("li.info-cur").removeclass("info-cur"); var movelen = _focus_pos * _focus_li_length; $("#bigslideul").animate({ left: "-" + movelen + "px" }, 600); if (_focus_pos == (_focus_num - 1)) { _focus_direction = false } if (_focus_pos == 0) { _focus_direction = true } if (_focus_direction) { _focus_pos++ } else { _focus_pos-- } } _focus_dsq = setinterval("autoexecanimate()", 6000); $("#smallslideul > li").hover(function() { _focus_pos = parseint($(this).attr("sid")); if (_focus_lock) { clearinterval(_focus_dsq); _focus_lock = false } $("#mypic" + _focus_pos).addclass("info-cur").siblings("li.info-cur").removeclass("info-cur"); var movelen = _focus_pos * _focus_li_length; $("#bigslideul").stop(true, true).animate({ left: "-" + movelen + "px" }, 600) }, function() { if (_focus_lock == false) { _focus_dsq = setinterval("autoexecanimate()", 6000); _focus_lock = true } }); $("#bigslideul").hover(function() { if (_focus_lock) { clearinterval(_focus_dsq); _focus_lock = false } }, function() { if (_focus_lock == false) { _focus_dsq = setinterval("autoexecanimate()", 6000); _focus_lock = true } }); $(".pic-list2 li").hover(function() { $(this).addclass("hover").siblings().removeclass("hover") }, function() { $(this).removeclass("hover") });