L
Lex
Hi,
I've got this code to make a table visible and hide it again:
function showHideTable(theTable,theImg)
{
if (document.getElementById(theTable).style.display == 'none')
{
document.getElementById(theTable).style.display = 'block';
}
else
{
document.getElementById(theTable).style.display = 'none';
}
}
Now, the link that triggers this says:
"menu"
I'd like to make it "menu +"
and when the (hidden) table is shown to say: "menu -"
But I don't have a clue as I really don't know anything about javascript.
Does it need to be done with div and if so how?
Thanks,
Lex
I've got this code to make a table visible and hide it again:
function showHideTable(theTable,theImg)
{
if (document.getElementById(theTable).style.display == 'none')
{
document.getElementById(theTable).style.display = 'block';
}
else
{
document.getElementById(theTable).style.display = 'none';
}
}
Now, the link that triggers this says:
"menu"
I'd like to make it "menu +"
and when the (hidden) table is shown to say: "menu -"
But I don't have a clue as I really don't know anything about javascript.
Does it need to be done with div and if so how?
Thanks,
Lex