<html><head><title>showAndHideDiv</title><script language="javascript">function displayDiv()...{//coder by Linqifo!!! var obj=document.getElementById('one'); if(obj.style.display=="none")...{ obj.style.display=""; }else...{ obj.style.display="none"; }}</script></head><body><div id="one" style="display:none">显示层和隐藏层的DEMO</div><input type="button" value="show" onclick="displayDiv();"></body></html>