The following snip of JavaScript code will attach a CSS class to the action bar on a Web view. Simply place the code in the 'onload' event of your view template and attach a stylesheet that has a class defined as "actionBar".
The script checks for a <TABLE> tag immediately after the <FORM> tag, if one exists, the script assumes that the table is defining an action bar.
The script is for IE 4> only.
// Check for an Action Bar and set it a classname
var oTable = document.forms[0].children[0];
if (oTable && oTable.tagName == "TABLE") {
document.forms[0].children[0].className = "actionBar";
}
Requires Free Membership to View
Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.
This was first published in February 2001