Forum Moderators: open
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Swap visibility 05-19-04</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
var statVar="v";
function swapV(elemID){
if(statVar=="v"){
var d=document.getElementById(elemID);
d.style.visibility="hidden";
statVar="h";
}else{
var d=document.getElementById(elemID);
d.style.visibility="visible";
statVar="v";
}
}
</script>
</head>
<body>
<a href="javascript:swapV('if_one');">swap</a>
<div id="main_div" style="background:blue;height:300px;">
<iframe id="if_one" style="background:white;"></iframe>
</div>
</body>
</html>