M
Mark
Hi - I have a function which shows/hides a <div> on my page - this
appears to oinly work in IE, but I also need it to work in Netscape 7.1.
My function is in my head:
function openIt(faq) {
showIt = document.all(faq);
if (showIt.style.display == "none") {
showIt.style.display = ""
} else {
showIt.style.display = "none"
}
}
...and the onclick code is:
<a href="#" onclick="JavascriptpenIt('22list'); return false;">click
here to toggle</a>
<div id="22list" style="display:none">
This will show/hide when you click the above link
</div>
Could anyone help amend the function to run in both IE and Netscape?
Thanks for any help,
appears to oinly work in IE, but I also need it to work in Netscape 7.1.
My function is in my head:
function openIt(faq) {
showIt = document.all(faq);
if (showIt.style.display == "none") {
showIt.style.display = ""
} else {
showIt.style.display = "none"
}
}
...and the onclick code is:
<a href="#" onclick="JavascriptpenIt('22list'); return false;">click
here to toggle</a>
<div id="22list" style="display:none">
This will show/hide when you click the above link
</div>
Could anyone help amend the function to run in both IE and Netscape?
Thanks for any help,