blob: 91fb24342dec220e72afe632e0a98c73738fe435 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* import jquery-1.6.2.js */
// Jquery center
jQuery.fn.center = function () {
this.css("position","absolute");
this.css("top", (($(window).height() - this.outerHeight()) / 2) + $(window).scrollTop() + "px");
this.css("left", (($(window).width() - this.outerWidth()) / 2) + $(window).scrollLeft() + "px");
return this;
}
// Make all buttons jqueryui objects
$(function() {
$( "input:button" ).button();
$( "input:submit" ).button();
});
|