[rt-users] javascript hideshow function

Sterpu Victor victor at ambra.ro
Wed Apr 26 17:42:30 EDT 2006


I use mozilla and the hideshow function sometimes does not work.
The chunk always dissepears, but sometimes I can't make it appear back.
I don't have this problem in internet explorer.


This is the function:
function hideshow(num) {
    idstring = "element-" + num;
    chunk = document.getElementById(idstring);
    if ( chunk.style.display == "none")  {
    chunk.style.display = chunk.style.tag;
    } else {
        chunk.style.tag = chunk.style.display;
        chunk.style.display = "none";
    }
}   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20060427/b90122c9/attachment.htm>


More information about the rt-users mailing list