JS 是这样的:
<script type="text/javascript">
function togmenu() {
theObj = document.getElementById('headeri').style;
if ( theObj.display == "none" ) theObj.display = "block"; else theObj.display = "none";
}
</script>
<div id="header" style="display:none">开关按钮</div>
<br />
<input type="button" onclick="togmenu()" value="开关按钮" />
是不是得写个 cookie 可怎么写呢?求高人给个答案吧!