您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

2 行
716 B

  1. (function(a){a.fn.parallaxie=function(t){return t=a.extend({speed:.2,repeat:"no-repeat",size:"cover",pos_x:"center",offset:0},t),this.each(function(){var e=a(this),o=e.data("parallaxie");typeof o!="object"&&(o={}),o=a.extend({},t,o);var s=e.data("image");if(s===void 0){if(!(s=e.css("background-image")))return;var r=o.offset+(e.offset().top-a(window).scrollTop())*(1-o.speed);e.css({"background-image":s,"background-size":o.size,"background-repeat":o.repeat,"background-attachment":"fixed","background-position":o.pos_x+" "+r+"px"}),a(window).scroll(function(){var n=o.offset+(e.offset().top-a(window).scrollTop())*(1-o.speed);e.data("pos_y",n),e.css("background-position",o.pos_x+" "+n+"px")})}}),this}})(jQuery);