I've found the javascript function ShowHide on the web.
Code:
<SCRIPT>
function showhide(id){
if (document.getElementById){
obj = document.getElementById(id);
if (obj.style.display == "none"){
obj.style.display = "";
} else {
obj.style.display = "none";
}
}
}
</SCRIPT>
when I insert this code in an HTML-document it works just fine in IE 6.0 (version @ work)
Code:
<UL>
<LI>
<A onclick="showhide('K230'); return(false);" href="#">1. Title Item 1</A>
<DIV id=K230 style="DISPLAY: none">Hidden text of Item 1</DIV>
<LI>
<A onclick="showhide('K231'); return(false);" href="#">2. Title Item 2</A>
<DIV id=K231 style="DISPLAY: none">Hidden text of Item 2</DIV>
</UL>
when I use this code in an HTML-formatted message, the script won't execute and the text won't appear when I click the link.
Anyone knows what I'm doing wrong?