I have JScript that runs on the client side.
function toggleHideShow()
{
if (document.all.advancedOptions.style.display == "none"
{
document.all.advanceOption.style.display="block";
var optimg="\\...\...\showimg.gif";
}
else
{
document.all.advanceOption.style.display="none";
var optimg="\\...\...\hideimg.gif";
}
}
on the body, I have this:
<input type=image src=<%=optimg%> style="display:block" LANGUAGE=javascript onclick="toggleHideShow()">
Can anybody tell me what I'm doing wrong, it doesn't seem to work.
function toggleHideShow()
{
if (document.all.advancedOptions.style.display == "none"
{
document.all.advanceOption.style.display="block";
var optimg="\\...\...\showimg.gif";
}
else
{
document.all.advanceOption.style.display="none";
var optimg="\\...\...\hideimg.gif";
}
}
on the body, I have this:
<input type=image src=<%=optimg%> style="display:block" LANGUAGE=javascript onclick="toggleHideShow()">
Can anybody tell me what I'm doing wrong, it doesn't seem to work.