$(window).scroll(function() { var scrolltop = $(window).scrolltop(); //鑾峰彇褰撳墠婊戝姩浣嶇疆 if (scrolltop > 150) { //婊戝姩鍒拌浣嶇疆鏃舵墽琛屼唬鐮� $(".ysod_meu").addclass("ysod_meus"); } else { $(".ysod_meu").removeclass("ysod_meus"); } }); // 常用函数 function $q(a){ return document.queryselector(a); }; function $qall(b){ return document.queryselectorall(a); }; function $l(c){ return console.log(c); }; // banner $(function(){ var scripts = document.getelementsbytagname("script"); var jsfolder = ""; for (var i= 0; i< scripts.length; i++) { if( scripts[i].src && scripts[i].src.match(/lovelygallery\.js/i)) jsfolder = scripts[i].src.substr(0, scripts[i].src.lastindexof("/") + 1); } var speed_hl5z=500;//切换速度 var interval_hl5z=2500;// 展示时间 var win_width = $(window).width(); var hl5z_height; var $html5zoo1=$("#html5zoo-1"); $html5zoo1.html5zoo({ jsfolder:jsfolder, pauseonmouseover:false, slideinterval:interval_hl5z, autoplay:true, navposition:"top", arrowhideonmouseleave:win_width, texteffectduration:win_width, navshowfeaturedarrow: false, navmarginy:-400, slide: {//左右滑 duration:speed_hl5z, easing:"easeoutcubic", checked:true }, crossfade: {// duration:speed_hl5z, easing:"easeoutcubic", checked:true }, threedhorizontal: {//3d方块左右 checked:true, bgcolor:"#222222", perspective:win_width, slicecount:1, duration:speed_hl5z*1.5, easing:"easeoutcubic", fallback:"slice", scatter:5, perspectiveorigin:"bottom" }, slice: {//手风琴 duration:speed_hl5z * 3, easing:"easeoutcubic", checked:true, effects:"up,down,updown", slicecount:10 }, fade: { duration:speed_hl5z, easing:"easeoutcubic", checked:true }, blocks: {//马赛克渐变 columncount:5, checked:true, rowcount:5, effects:"topleft,bottomright,top,bottom,random", duration:speed_hl5z*3, easing:"easeoutcubic" }, blinds: {//图片切割左右滑入 duration:speed_hl5z*2, easing:"easeoutcubic", checked:true, slicecount:6 }, shuffle: {//马赛克飞入飞出 duration:speed_hl5z*2.5, easing:"easeoutcubic", columncount:5, checked:true, rowcount:5 }, threed: {//3d方块上下 checked:true, bgcolor:"#222222", perspective:win_width, slicecount:6, duration:speed_hl5z*2, easing:"easeoutcubic", fallback:"slice", scatter:6, perspectiveorigin:"right" }, transition:"slide,threedhorizontal,slice,fade,blocks,blinds,shuffle,threed" }); });