var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); var showIndex = 1; function showbg(src) { var index = $("#flashs .btn span").index($("#flashs .btn span.cur")); if (index < 0) { index = 0; } $("#flashs .btn span.cur").css("opacity", 0.7).removeClass("cur"); $("#flashbg" + index).css({"opacity":0,"z-index":1}); $("#flashbg" + showIndex).css({ "z-index": 2 }); $("#flashbg" + showIndex).animate({ opacity: 1 }, 500); $("#flashs .btn span").eq(showIndex).css("opacity", 1).addClass("cur"); } var h = $("#flashs div.bgitem").css("opacity", 0).length; var btn = "
"; for (var i = 0; i < h; i++) { btn += "" + (i + 1) + ""; } btn += "
"; $("#flashs").append(btn); $("#flashs .btn span").css("opacity", 0.7).mouseenter(function () { showIndex = $("#flashs .btn span").index(this); showbg(showIndex); }).eq(0).trigger("mouseenter"); $("#flashs").hover(function () { clearInterval(picTimer); }, function () { picTimer = setInterval(function () { showIndex++; if (showIndex == h) { showIndex = 0; } showbg(showIndex); }, 5000) }).eq(0).trigger("mouseleave"); }