日期:2014-05-16 浏览次数:20384 次
#signup { width: 470px; padding-bottom: 2px; display:none; background: #FFF; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; box-shadow: 0px 0px 4px rgba(0,0,0,0.7); -webkit-box-shadow: 0 0 4px rgba(0,0,0,0.7); -moz-box-shadow: 0 0px 4px rgba(0,0,0,0.7); }
(function($){ $.fn.extend({leanModal:function(_1){ var _2={top:100,overlay:0.5}; _1=$.extend(_2,_1); return this.each(function(){ var o=_1;$(this).click(function(e){ var _3=$("<div id='lean_overlay'></div>"); var _4=$(this).attr("href"); $("body").append(_3); $("#lean_overlay").click(function(){_5(_4);}); var _6=$(_4).outerHeight(); var _7=$(_4).outerWidth(); $("#lean_overlay").css({"display":"block",opacity:0}); $("#lean_overlay").fadeTo(200,o.overlay); $(_4).css({"display":"block","position":"fixed",opacity:0,"z-index":11000,"left":50+"%","margin-left":-(_7/2)+"px","top":o.top+"px"}); $(_4).fadeTo(200,1);e.preventDefault();});}); function _5(_8){$("#lean_overlay").fadeOut(200);$(_8).css({"display":"none"});};}});})(jQuery);