Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Expandable Outline

I creating a page call Question & Answer in which I have to use expandable
outlines to enable me to hide the answer and view the questions. The think
is I don't know how to finish the tags. This is the tag I enter:

function expand(el) {
if (!ver4) return;
if (IE4) {
expandIE(el)
}
else {
expandNav(el)
}
}

function expandIE(el) {
theEl=eval (e + Answer");
if (theEl.style.display == "none") {
theEl.style.display="block";
theEl.expanded=true;
}
else {
theEl.style.display="none";
theEl.expanded=false;
}
}
function expandNav (el) {
theEl=eval(document." + el + "Answer");
if (theEl.visibility == "hide") {

I try everything but it is not working. If you could help me it will be
very apreciated.

Thank you

Rosa
[859 byte] By [Rosa] at [2007-11-9 16:16:51]