<script type = "text/javascript">
function toggle(){){
theobj = document.getElementById( 'Sunyanzi')。
if(theobj.display == "none")theobj.display = "block";
}
</script>
<div id = "sunyanzi" style = "display:none">あなたは私が現れた~~~ </div>
<br />
<入力型= "button" onclight = "toggle()" value = "
2つの方法:取り外して非表示にします
//ポップアップレイヤーを作成します
var dvmsg = document.createelement( "div");
strhtml = "<div class = '####'> pop -upレイヤーコンテンツ</div>" "
strhtml += "<div class = '####'> <入力タイプ= 'ボタン'値= 'ターンオフ' onclick = 'btnclick()'> </div>"
dvmsg.innerhtml = strhtml;
document.body.AppendChild(DVMSG);
//ボタンを閉じます
btnclick = function(){{
document.body.RemoveChild(DVMSG);
----------------------------------
またはポップアップレイヤーにはdiv idがマークされています
<div id = "tanchu"> pop -upレイヤーコンテンツ</div>
JSで
function open(){
document.getElementById(Tanchu).style.display = "" "; // display
}
関数close(){){
document.getElementById(Tanchu).style.display = "none";
}