65 lines
1.7 KiB
XML
65 lines
1.7 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<xlib_symbol id='xScrollLeft'>
|
|
|
|
<copyright>Copyright 2001-2005 Michael Foster (Cross-Browser.com)</copyright>
|
|
<license>Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL</license>
|
|
<groups>
|
|
<grp>Position</grp>
|
|
<grp>Window</grp>
|
|
</groups>
|
|
<type>Function</type>
|
|
|
|
<description><![CDATA[Determine how far the window (or an element) has scrolled horizontally.]]></description>
|
|
|
|
<syntax>xScrollLeft(e, bWin)</syntax>
|
|
|
|
<parameters>
|
|
<par>
|
|
<name>ele</name>
|
|
<note><![CDATA[id string or object reference. If undefined return document scrollLeft]]></note>
|
|
</par>
|
|
<par>
|
|
<name>bWin</name>
|
|
<note><![CDATA[if true, ele is assumed to be a reference to a window object]]></note>
|
|
</par>
|
|
</parameters>
|
|
|
|
<return>the number of pixels the element (or window) has scrolled horizontally</return>
|
|
|
|
<dependencies>
|
|
<dep>xGetElementById</dep>
|
|
<dep>xDef</dep>
|
|
<dep>xNum</dep>
|
|
</dependencies>
|
|
|
|
<demos>
|
|
<demo>
|
|
<url>http://cross-browser.com/toys/</url>
|
|
<note><![CDATA[Index of all X demos.]]></note>
|
|
</demo>
|
|
</demos>
|
|
|
|
<revisions>
|
|
<rev>
|
|
<num>3</num>
|
|
<date>6Apr04</date>
|
|
<author>mf</author>
|
|
<note><![CDATA[If ele is document or html or body then return document.scrollLeft, not ele.scrollLeft]]></note>
|
|
</rev>
|
|
<rev>
|
|
<num>2</num>
|
|
<date></date>
|
|
<author>mf</author>
|
|
<note><![CDATA[added external window support]]></note>
|
|
</rev>
|
|
<rev>
|
|
<num>1</num>
|
|
<date>31Mar04</date>
|
|
<author>mf</author>
|
|
<note><![CDATA[put in it's own file for use with XC]]></note>
|
|
</rev>
|
|
</revisions>
|
|
|
|
</xlib_symbol>
|