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.
ace は Use? のコンポーネントである