ace (Alterable Classified Elements)
version 1.0a Copyright (C) 2006 Tagata Akira
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
HTML : <p id="in-ex-legend"> : <span class="ext ">external page</a> : <span class="in-site ">in-site Page</a> : </p> <p id="link-list"> : <a href="linkA.html" class="in-site toggleInSite">link A</a> : <a href="http://ext.do.main/" class="ext toggleExSite">Site X</a> : <a href="linkB.html" class="in-site toggleInSite">link B</a> : </p> JavaScript oAce = new _ace({ treeId: 'in-ex-legend', type: 'checkbox' }, { toggleInSite: { styleOn: { backgroundColor: '#ffcccc' }, styleOff: { backgroundColor: 'transparent' } }, toggleExSite: { styleOn: { backgroundColor: '#ccccff' }, styleOff: { backgroundColor: 'transparent' } } }, 'link-list');
style class object { class name1: style definition1, class name2: style definition2, : } style definition { styleOn: style description object // style for toggle on styleOff: style description object // style for toggle off classOn: class name list string // class for toggle on classOff: class name list string // class for toggle off } style description object { property1: vlaue1, property2: vlaue2, : }
<html> <head> : | <script src="_fss.js" type="text/javascript"></script> | <script src="_jlog.js" type="text/javascript"></script> | <script src="_ace.js" type="text/javascript"></script> | <script src="foobar.js" type="text/javascript"></script> : </head> <body> : </body></html>
function foobar() { | this._log('foobar(): entered',0); : this.oAce = new _ace(srcArg, // cf. source code styleClassObjects, // tgtTreeId, // collectSrcElt, // tgtSearchTagName, // tgtEltFound); // : } function foobarInit() { : ofb = new foobar(); : } window.onload = function () { | // _fss.prototype._jlOffStartup = true; // to inactivate | // _fss.prototype._jlHideJlogButtonOnStartup = true; // to hide | foobar.prototype._jlogSetUp(foobarInit); // log for only foobar | // _fss.prototype._jlogSetUp(foobarInit); // log for all foobarInit(); }
ace is one of Use? components.