Class Index | File Index

Classes


Namespace Jelo.CSS

CSS stuff
Defined in: Jelo.CSS.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
Jelo.CSS.addClass(element, class)
<static>  
Jelo.CSS.clearOpacity(element)
Mainly used by internal functions, clearOpacity fixes IE behavior.
<static>  
Jelo.CSS.createRule(selector)
Creates a new CSS stylesheet rule.
<static>  
Jelo.CSS.deleteRule(selector)
Deletes a CSS stylesheet rule.
<static>  
Jelo.CSS.getRule(selector, deleteFlag)
Gets a CSS stylesheet rule.
<static>  
Jelo.CSS.getStyle(element, property)
Gets the current or computed value for an element's CSS property.
<static>  
Jelo.CSS.hasClass(element, class)
<static>  
Jelo.CSS.randomColor()
Generates a random hexidecimal color, including the hash symbol (e.g.
<static>  
Jelo.CSS.removeClass(element, class)
<static>  
Jelo.CSS.setStyle(element, property, value)
Gets the current or computed value for an element's CSS property.
Namespace Detail
Jelo.CSS
Method Detail
<static> Jelo.CSS.addClass(element, class)
Parameters:
{HTMLElement} element
The item to which the class should be assigned.
{String} class
The class name to assign. Duplicates will be filtered out automatically.

<static> Jelo.CSS.clearOpacity(element)
Mainly used by internal functions, clearOpacity fixes IE behavior.
Parameters:
{HTMLElement} element

<static> {CSSRule} Jelo.CSS.createRule(selector)
Creates a new CSS stylesheet rule. http://www.hunlock.com/blogs/Totally_Pwn_CSS_with_Javascript
Parameters:
{String} selector
CSS selector, exactly as entered in the stylesheet.
Returns:
{CSSRule} A new rule that can be modified as follows: var r = Jelo.CSS.createRule('#test'); r.style.color = 'green';

<static> Jelo.CSS.deleteRule(selector)
Deletes a CSS stylesheet rule. http://www.hunlock.com/blogs/Totally_Pwn_CSS_with_Javascript
Parameters:
{String} selector
CSS selector, exactly as entered in the stylesheet.

<static> Jelo.CSS.getRule(selector, deleteFlag)
Gets a CSS stylesheet rule. http://www.hunlock.com/blogs/Totally_Pwn_CSS_with_Javascript
Parameters:
{String} selector
CSS selector, exactly as entered in the stylesheet.
{Boolean=false} deleteFlag
True to delete the matching rule.

<static> {String} Jelo.CSS.getStyle(element, property)
Gets the current or computed value for an element's CSS property.
Parameters:
{HTMLElement|HTMLElement[]|String} element
One or more items to investigate. If a string is supplied, it is considered a CSS selector and will match elements accordingly.
{String} property
The CSS property to retrieve
Returns:
{String} CSS property value

<static> {Boolean} Jelo.CSS.hasClass(element, class)
Parameters:
{HTMLElement} element
The item to investigate.
{String} class
The class name to search for.
Returns:
{Boolean} True if the item's className property contains the supplied class name.

<static> {String} Jelo.CSS.randomColor()
Generates a random hexidecimal color, including the hash symbol (e.g. #5181ff)
Returns:
{String} A "CSS-formatted" color.

<static> Jelo.CSS.removeClass(element, class)
Parameters:
{HTMLElement} element
The item to affect.
{String} class
The class name to remove.

<static> Jelo.CSS.setStyle(element, property, value)
Gets the current or computed value for an element's CSS property.
Parameters:
{HTMLElement|HTMLElement[]|String} element
One or more items to affect. If a string is supplied, it is considered a CSS selector and will match elements accordingly.
{String|String[]} property
The CSS property to assign.
{String|String[]} value
The value to assign.

Documentation generated by JsDoc Toolkit 2.1.0 on Mon Mar 15 2010 14:48:20 GMT-0700 (PDT)