// javascript document $(function() { var data = null; if (data == null) return; var strhtml = "
"; strhtml += "关闭"; if (data.url == null || data.url.length == 0 || data.url == "http://") { strhtml += ""; strhtml += ""; } else { strhtml += ""; strhtml += ""; } strhtml += "
"; var item = $(strhtml); item.find(".closescreen").hide(); $("body").prepend(item); var snactive = window.snactive = item.get(0), a = snactive.getelementsbytagname("a"), h = 0, imgsrc = []; imgsrc[0] = data.thum; imgsrc[1] = data.src; snactive.style.overflow = "hidden"; a[0].style.display = "none"; a[0].innerhtml += ''; if (a[1]) a[1].innerhtml += ''; if (data.sec > 0) { var hideimg = item.find("a:hidden"), close = item.find(".closescreen"), timeout = !1; timeout = settimeout(function() { item.animate({ height: data.height }, 600, function() { hideimg.siblings('a:visible').hide(); hideimg.show(); close.show().click(function(e) { item.slideup(300); }); }); }, data.sec * 1000); } });