|
<?xml version="1.0" encoding="ISO-8859-1"?>
<x_symbol id='xAddClass'>
<sources>
<src><file>xaddclass.js</file><note><![CDATA[Default.]]></note></src>
</sources>
<copyright>Copyright 2005-2007 Daniel Frechette - modified by Mike Foster</copyright>
<license>Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL</license>
<groups>
<grp>Style</grp>
</groups>
<type>Function</type>
<description><![CDATA[Adds a class name to an element.]]></description>
<syntax>xAddClass(e, c)</syntax>
<parameters>
<par><name>e</name><note><![CDATA[Str/Obj - Element id or object]]></note></par>
<par><name>c</name><note><![CDATA[Str - Class name]]></note></par>
</parameters>
<return><![CDATA[Bool - true successful, false otherwise]]></return>
<dependencies>
<dep>xGetElementById</dep>
<dep>xHasClass</dep>
</dependencies>
<demos>
<demo><url>http://cross-browser.com/x/examples/table_cursors.html</url><note><![CDATA[Demo that uses xAddClass.]]></note></demo>
<demo><url>http://cross-browser.com/x/examples/xtablecursor.html</url><note><![CDATA[Demo that uses xAddClass.]]></note></demo>
</demos>
<revisions>
<rev><num>3</num><date>21Feb07</date><author>mf</author><note><![CDATA[Bug fixes]]></note></rev>
<rev><num>2</num><date>8Sep2006</date><author>df</author><note><![CDATA[Updated]]></note></rev>
<rev><num>1</num><date>11Oct2005</date><author>df</author><note><![CDATA[Initial release.]]></note></rev>
</revisions>
</x_symbol>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I have been a software developer since 2005, focusing on .Net applications with MS SQL backends, and recently, C++ applications in Linux, Mac OS X, and Windows.