HTML
<a href="javascript:void()" onclick="show()">点击此处显示或隐藏</a>
<div id="hoary" style="display:none">可以隐身可以显示。</div>
JS
<script type="text/javascript">
function show(){
document.getElementById("hoary").style.display=document.getElementById("hoary").style.display==''?'none':'';
}
</script>