$(".fullslide").hover(function(){ $(this).find(".prev,.next").stop(true, true).fadeto("show", 0.5) }, function(){ $(this).find(".prev,.next").fadeout() }); $(".fullslide").slide({ titcell: ".hd ul", maincell: ".bd ul", effect: "fold", autoplay: true, autopage: true, trigger: "click", startfun: function(i) { var curli = jquery(".fullslide .bd li").eq(i); if ( !! curli.attr("_src")) { curli.css("background-image", curli.attr("_src")).removeattr("_src") } } }); function tbox(){ //h = $(window).height(); t = $(document).scrolltop(); if(t > 150){ $(".tbox").fadein(300); }else{ $(".tbox").fadeout(300); } } $(document).ready(function(e){ $("body").append('
'); tbox(); $("#gotop").click(function(){ $(document).scrolltop(0); }) }); $(window).scroll(function(e){ tbox(); }) $(".nav a").each(function(){ if ($(this)[0].href == string(window.location) && $(this).attr('href')!="") { $(this).parents("li").addclass("on"); } }); $(function () { $("#qrcodeimg").hover(function () { $("#qrcode_bg").show(); }, function () { $("#qrcode_bg").hide(); }); });