var frame_btn =document.getElementById('onshow');
var x = document.getElementById("myframe");
x.onclick=hide;
frame_btn.onclick=show;
function show()
{
if(document.getElementById("myframe").style.display=='none'){
document.getElementById("myframe").style.display = "block";
}
else{
document.getElementById("myframe").style.display = "none";
}
}
function hide()
{
document.getElementById("myframe").style.display = "none";
}
网友评论