﻿jQuery.fn.fixedCenter = function () { return this.each(function () { function a() { var c = jQuery(b).outerWidth(), d = jQuery(b).outerHeight(), a = jQuery(window).width(), e = jQuery(window).height(), c = a / 2 - c / 2, d = e / 2 - d / 2; jQuery(b).css({ left: c, top: d, position: "fixed" }) } var b = jQuery(this); a(); jQuery(window).bind("resize", function () { a() }) }) };
