#20 mark the ref menu point bold

Unstable_(example)
open
nobody
None
5
2005-02-14
2005-02-14
Anonymous
No

to note the menu points behind i have write a little
extension.
very usefull for vert menu by action on moseover

testet only with ie6 and firefox1 (menu typ=vert) (menu
used in tiki wiki.org)

you must rewrite the funktion

function setVisibility(layer,on)

in file layersmenu-library.js

also in the css file you must add a new style name in
my example "fett" (bold in english) the original style
for menus is in my example "mdkitem"...

so very simple to add but nice to have ;-)

changed function setVisibility

function setVisibility(layer,on) {
if (on) {
if (DOM) {

document.getElementById(layer).style.visibility =
"visible";

// manuel
var change = "ref"+ layer;

document.getElementById(change).className = "fett";

} else if (NS4) {

document.layers[layer].visibility = "show";
} else {

document.all[layer].style.visibility = "visible";
}
} else {
if (DOM) {
// manuel
var change = "ref"+ layer;

document.getElementById(change).className = "mdkitem";

document.getElementById(layer).style.visibility = "hidden";
} else if (NS4) {

document.layers[layer].visibility = "hide";
} else {

document.all[layer].style.visibility = "hidden";
}
}
}

Discussion


Log in to post a comment.