十三分网 > 兴趣 > 佳缘网会员登录页面 正文

佳缘网会员登录页面

发布时间:2017-09-15 11:39:01 来源: 十三分网

佳缘网会员登录页面

$.fn.popup = function (opts) { var _self = $(this), documentW, documentH, windowW, windowH, scrollT, scrollL, defaults = {bgId: opts.bgId, openId: opts.openId, follow: true, bgOpacity: 0.4, position: "absolute", effect: "normal", autoOpen: false}, opts = $.extend(defaults, opts || {}), isIE6 = function () { return $.browser.msie && ($.browser.version == "6.0") && !$.support.style ? true : false }, isIE10 = function () { return $.browser.msie && $.browser.version == "10.0" ? true : false }, setCss = function (obj, json) { var arr = ["Webkit", "Moz", "O", "ms", ""]; for (var attr in json) {if(json.hasOwnProperty(attr)){if (attr.charAt(0) == "$") {for (var i = 0; i iMax ? iMax : iCurr }, drag = function (ele) { if (!opts.moveId) { return var iX = 0, iY = 0; opts.moveId.hover(function () { $(this).css({cursor: "move"}); }, function () { $(this).css({cursor: "default"}); opts.moveId.bind("mousedown", function (e) { $(this).css({cursor: "move"}); iX = e.pageX - ele.offset().left; iY = e.pageY - ele.offset().top; $(document).bind("mousemove", function (e) { var l = range(e.pageX - iX, 0, windowW - opts.openId.outerWidth()), t = range(e.pageY - iY, 0, documentH - opts.openId.outerHeight()); if (opts.effect == "3d" && isHas3D()) { $("#popup_parent").css({left: l, top: t}) } else { ele.css({left: l, top: t}) if (opts.openId[0].setCapture) { opts.openId[0].setCapture() $(document).bind("mouseup", function () { $(document).unbind("mousemove"); $(document).unbind("mouseup"); if (opts.openId[0].releaseCapture) { opts.openId[0].releaseCapture() opts.moveId.css({cursor: "default"}) return false close = function () { if (opts.openId.attr("id") == "tab_couples-tip1") { opts.bgId.hide(); $("#tab_couples-tip1").css({top: -9999}); } else { if (opts.effect == "normal") { opts.bgId.hide(); opts.openId.hide(); } else { if (opts.effect == "fade") { opts.bgId.hide(); opts.openId.hide() } else { if (opts.effect == "3d") { if (isHas3D()) { opts.bgId.hide(); opts.openId.hide(); $(document.body).append(opts.openId); $("#popup_parent").remove(); } else { opts.bgId.hide(); opts.openId.hide() render = function () { if (opts.effect == "normal") { opts.bgId.show(); opts.openId.show() } else { if (opts.effect == "fade") { opts.bgId.fadeIn(); opts.openId.fadeIn() } else { if (opts.effect == "3d") { opts.bgId.show(); opts.openId.show(); if (isHas3D()) { opts.bgId.fadeIn(); setCss(opts.openId[0], {$Transform: "rotateY(-180deg) translateZ(0px)", top: 0, opacity: 100}); var _h = opts.openId.outerHeight(), _W = opts.openId.outerWidth(), _L = (windowW - opts.openId.outerWidth()) / 2 + scrollL, _T = (windowH - opts.openId.outerHeight()) / 2 + scrollT, oPopupContainer = $(""); oPopupContainer.append(opts.openId); setCss(oPopupContainer[0], {$TransformStyle: "preserve-3d", $Perspective: "800px", width: _W + 1, height: _h + 1, position: "absolute", top: _T, left: _L, zIndex: opts.bgId.css("zIndex") + 1}); $(document.body).append(oPopupContainer); opts.openId.show(); setTimeout(function () { setCss(opts.openId[0], {$Transform: "rotateY(0deg) translateZ(0px)", top: 1, left: 1, $Transition: "1s all ease", opacity: 100}) }, 10) if (opts.position == "fixed" && opts.moveId) { opts.openId.css({top: (windowH - opts.openId.outerHeight()) / 2 + scrollL, left: (windowW - opts.openId.outerWidth()) / 2 + scrollT, position: "absolute"}) opts.openId.find(".close").bind("click", function () { close(); return false; if (opts.follow && opts.position != "fixed" || isIE6() && opts.position == "fixed") { $(window).bind("scroll", function () { init(); moveTo() }, moveTo = function () { if (isHide(opts.openId)) { return if (opts.effect == "3d" && isHas3D()) { var oPopupParent = document.getElementById("popup_parent"); $(oPopupParent).stop(true).animate({top: (windowH - opts.openId.outerHeight()) / 2 + scrollT}); opts.openId.css({top: 1, left: 1}) } else { opts.openId.stop(true).animate({opacity: 1, top: scrollT + ($(window).height() - opts.openId.outerHeight()) / 2}) }, reSize = function () { opts.bgId.css({width: $(window).width(), height: $(

网站地图 | 关于我们 | 联系我们 | 广告服务 | 免责声明 | 在线留言 | 友情链接 | RSS 订阅 | 热门搜索
版权所有 十三分网 www.swonad.com