| IE 4 | IE 5.x | IE 6 | NS 6.x | NS 7.x | Moz FB | Moz 1.5.x | Moz 1.6.x | Op 6 | Op 7 | |
| api_aE() | ||||||||||
| api_cB() | ||||||||||
| api_cC() | ||||||||||
| api_cS() | ||||||||||
| api_cX() | ||||||||||
| api_cY() | ||||||||||
| api_eC() | ||||||||||
| api_eR() | ||||||||||
| api_gC() | ||||||||||
| api_gE() | ||||||||||
| api_gO() | ||||||||||
| api_gS() | ||||||||||
| api_rE() | ||||||||||
| api_wH() | ||||||||||
| api_gH() | ||||||||||
| api_gP() | ||||||||||
| api_nN() | ||||||||||
| api_eL() | ||||||||||
| api_rW() | ||||||||||
| api_rN() | ||||||||||
| api_cP() | ||||||||||
| api_DeA() | ||||||||||
| api_DeV() |
| Safari 1.x | IE 5.x | Moz 1.5.x | Moz 1.6.x | NS 6.x | NS 7.x | Op 5.x | Op 6.x | |
| api_aE() | ||||||||
| api_cB() | ||||||||
| api_cC() | ||||||||
| api_cS() | ||||||||
| api_cX() | ||||||||
| api_cY() | ||||||||
| api_eC() | ||||||||
| api_eR() | ||||||||
| api_gC() | ||||||||
| api_gE() | ||||||||
| api_gO() | ||||||||
| api_gS() | ||||||||
| api_rE() | ||||||||
| api_wH() | ||||||||
| api_gH() | ||||||||
| api_gP() | ||||||||
| api_nN() | ||||||||
| api_eL() | ||||||||
| api_rW() | ||||||||
| api_rN() | ||||||||
| api_cP() | ||||||||
| api_DeA() | ||||||||
| api_DeV() |
| KDE 1.x | KDE 2.x | KDE 3.x | Moz 1.4.x | Moz 1.5.x | Moz 1.6.x | Op 5 | Op 6 | Op 7 | |
| api_aE() | |||||||||
| api_cB() | |||||||||
| api_cC() | |||||||||
| api_cS() | |||||||||
| api_cX() | |||||||||
| api_cY() | |||||||||
| api_eC() | |||||||||
| api_eR() | |||||||||
| api_gC() | |||||||||
| api_gE() | |||||||||
| api_gO() | |||||||||
| api_gS() | |||||||||
| api_rE() | |||||||||
| api_wH() | |||||||||
| api_gH() | |||||||||
| api_gP() | |||||||||
| api_nN() | |||||||||
| api_eL() | |||||||||
| api_rW() | |||||||||
| api_rN() | |||||||||
| api_cP() | |||||||||
| api_DeA() | |||||||||
| api_DeV() |
| Variable | Comments |
| api_version | Numerical version as a decimal number for major.minor version sniffing. |
| api_program | Program Name. Note this will not change. |
| api_author | The name of the person who created this program (Me). |
| api_title | The full title of the API |
| api_filename | The filename of the API if you ned to load/unload it. |
| Function Name | Returned Data Type | Function | Param | Comments | Dependencies |
| Client Browser Sniff | int | api_cB | (string browserInfo) |
Returns IndexOf "browserInfo" Client Browser If it is not within the browser -1 is returned. |
None |
| Get Element | HTMLElement | api_gE | (string id) |
Get element from text ID Returns the HTML/DHTML Element Object |
None |
| Write Html | void | api_wH | (HTMLElement elm, string html [, bool append]) |
Write html in element, or append | None |
| Change Class | void | api_cC | (HTMLElement elm, string className) |
Change elements class. Note that you usually get better performance using Change Class/api_cS() | None |
| Change Style | void | api_cS | (HTMLElement elm, string styleName, string styleValue) |
Change elements style. | None |
| Current X | int | api_cX | (object.Event) | Returns the Left Position of the Mouse for a given element | None |
| Current Y | int | api_cY | (object.Event) | Returns the Top Position of the Mouse for a given element | None |
| Attach Event | int | api_aE | (HTMLElement elm, string eventType, string function, string useCapture) |
Add/attach listener event; Returns a numerical status that means: |
None |
| Remove Event | int | api_rE | (HTMLElement elm, string eventType, string function, string useCapture) |
Remove/detach listener event; Returns a numerical status that means: |
None |
| Get Offset | int | api_gO | (HTMLElement elm, string offsetType) |
Returns a numeric value of a style for a given element and style. Note the limited support in browsers, usually you can get: Top,Left,Width,Height & Display (Yes please capitalize the first letter of those listed to get them to work.) |
None |
| Get Sytle Value | string | api_gS | (HTMLElement elm, string styleName) |
Returns a styles value for a given element and style | None |
| Get Class Value | string | api_gC | (HTMLElement elm) |
Returns the current class for given element | None |
| Get HTML | string | api_gH | (HTMLElement elm) |
gets the html of an object | None |
| Get Property | string or int | api_gP | (HTMLElement elm,HTMLElement Property) |
Returns the value of an element's Property | None |
| Nearest Number | string | api_nN | (int v,int n) |
Returns the next nearest value. Rounds v to the nearest unit of n. | None |
| Element Lock | void | api_eL | (HTMLElement elm, [ boolean v ]) |
Enable & Disable an element. If v is unspecified it toggles the lock state. If v is True the element is disabled; if v is false it enables the object. | None |
| Resize Window | void | api_rW | ([int h], [int w], [int x], [int y]) |
Resize and Reposition a window dynamically. [0]:int height (default avalible); [1]:int width (default avalible); [2]:int left (default 0); [2]:int top (default 0); | None |
| Round Number Percision | string | api_rN | (int n, [int l]) |
Returns a string of N decimal Places. int n: number; int l: length/number of decimal places,default is 2 decimal places | None |
| Copy to Clipboard | void | api_cP | (HTMLElement elm) |
Copies Data to the Clipboard. You can only use it on some text based form objects (not DIV or SPAN). A known workaround is copying/buffering data to a hidden input object and then executing this command on the hidden element. | None |
| Copy to Clipboard | void | api_rK | (String t, String f, String r, [boolean c]) |
WARNING: As of this writing only IE supports this function, however this does not cause an error in other browsers. Does a search and replace in string t for string f; replaceing string f with string r. By default it is not case sensitive. You can make it case sensitive by setting the optional bool value c to 'true'. returns undefined if no search term is entered. granite countertops marietta ga | None |
| Preload Images | void | api_pI | (String URL (or array of URL's)) |
Preloads the image to your browsers cache. Extreemly fast since only downloads, and does not render each image. You may call 1 ore more images at a time by this function. Status of current load is in document.imgs.loaded (as a decimal representation of a percent of total curent load procesed.) and can be accessed by other scripts. Call images normally in your page. | None |
| Dependent Functions | |||||
| Element Alpha | void | api_DeA | (HTMLElement elm, int v) |
Applies element alpha transparncy properly. e:object element; v: int amount 100 to 1 | api_cS() |
| Element Visibility | void | api_DeV | (HTMLElement elm, [boolean d]) |
Changes element visibility OR element toggle visibility.e:object element; [d]: boolean (hide element[true:hides||false:shows]) | api_cS(), api_gS() |
| api_gE() | returns an [object] | |
| api_cB() | index of string in browser user agent if found, or -1 | |
| api_wH() | Changes the text or appends it in an element | |
| api_aE() | Adds an Event listener (alert) on testobject | |
| api_rE() | Removes event listener from a element (if it exists) | |
| api_cC() | changes class of element | |
| api_cS() | Changes a style of element | |
| api_cX() | Gets the Left Position of the Mouse; uses helper functions in Mozilla & NS due to architecture; Currently developing a workaround. | |
| api_cY() | Gets the Top Position of the Mouse; uses helper functions in Mozilla & NS due to architecture; Currently developing a workaround. | |
| api_gO() | Gets value of element offset | |
| api_gS() | Gets value of element Style; Some properties are quircky in diffrent browsers. For example in IE you would access a style using: backgroundColor where in Mozilla or NS you would access the same info using background-Color | |
| api_gC() | Gets value of element Class | |
| api_gH() | Gets the HTML of an object | |
| api_gP() | Returns the value of weather the item is disabled or not. | |
| api_nN() | Returns 12.75 from the deafult input. | |
| api_eL() | Disables/Locks testObject, and the test feild. | |
| api_rW() | Makes the window 300 by 300 at cords (50,50) for the default values (for 3 seconds). | |
| api_rN() | Alerts: New Number: 11.20 | |
| api_cP() | Copies the textfeild to the left to the clipboard. | |
| api_DeA() | Changes TestObjects Alpha Opacity to 75%, then moves it up above text so you can see. | |
| api_DeV() | Hides/Unhides TestObject | |
| api_rK() | Alerts with a string where all the occurances of bob are replaced with Ike. | |
| api_pI() | Runs a the image preloader. |