Web Development with jQuery®

(Elliott) #1

Appendix H (^) ❘ 545
bapp08.indd 02/19/2015 Page 545
outerHeight(options) Returns the offsetHeight (includes the pixel
height, borders, and padding) of the fi rst
selected element. The options argument is
a JavaScript object literal of options. See the
“Options” section for more information.
Integer
outerWidth(options) Returns the offsetWidth (includes the pixel
width, borders, and padding) of the fi rst
selected element. The options argument is
a JavaScript object literal of options. See the
“Options” section for more information.
Integer
SCROLLING
scrollLeft() Gets the horizontal position of the scrollbar for
the fi rst selected element.
Integer
scrollLeft(position) Sets the horizontal position of the scrollbar for
each selected element.
jQuery
scrollTop() Gets the vertical position of the scrollbar for the
fi rst selected element.
Integer
scrollTop(position) Sets the vertical position of the scrollbar for
each selected element.
jQuery
JQUERY
$.cssHooks Used to provide an API for jQuery to describe how a particu-
lar CSS property should be handled internally, by jQuery.
$.cssHooks['WebkitBorderRadius'] = {
get : function(element, computed, extra)
{
// Code for getting the CSS property
},
set : function(element, value)
{
// Code for setting the CSS property
}
};
http://www.it-ebooks.info

Free download pdf