Hemi JavaScript Framework

Hemi.css

Description

The CSS Utility class includes tools for positioning, importing external stylesheets, and enabling and disabling stylesheets.

static Hemi.css

version 3.1.9

Utilities for DOM Styles and Cascading Style Sheets.

Index

Method Index

Methods

decodeJSON

Returns an object from the encoded construct. The accepted pattern is: {#HF_NAME{name:value}}, and the returned value is an object whose first member is NAME and whose children is the encoded data. For example: {#HF_Test{data:1}} would yield: {Test:{data:1}}, as a JavaScript object.

Syntax

o = decodeJSON( s )

Parameters

Returns

o as Object: The decoded object.

getAbsoluteLeft

Returns the absolute left position of the specified node.

Syntax

i = getAbsoluteLeft( o, r )

Parameters

Returns

i as int: The absolute left of the specified object from the parent window.

getAbsolutePosition

Returns the absolute position of the specified node.

Syntax

i = getAbsolutePosition( o, r, b )

Parameters

Returns

i as int: The absolute position of the specified object from the parent window.

getAbsoluteTop

Returns the absolute top position of the specified node.

Syntax

i = getAbsoluteTop( o, r )

Parameters

Returns

i as int: The absolute top of the specified object from the parent window.

loadStyleSheet

Imports the specified stylesheet.

Syntax

void loadStyleSheet( sUrl, sName )

Parameters

toggleStyleSheet

Enables or disables the specified external stylesheet.

Syntax

void toggleStyleSheet( sTitle, bEnable )

Parameters