Mistrel
05-15-2006, 05:55 AM
I'm using the following script to show/hide a particular element on my website. How would I collapse these two functions into one?
(if hidden, unhide. if visible, hide)
function show(){
document.getElementById("live").style.visibility="visible"
}
function hide(){
document.getElementById("live").style.visibility="hidden"
}
(if hidden, unhide. if visible, hide)
function show(){
document.getElementById("live").style.visibility="visible"
}
function hide(){
document.getElementById("live").style.visibility="hidden"
}