我在html上写了这一法典:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="javascript" type="text/javascript">
function setVisibility(id, visibility) {
document.getElementById(id).style.display = visibility;
}
</script>
<title>Welcome to the memory game</title>
</head>
<body>
<h1>Welcome to the memory game!</h1>
<input type="button" name="type" value= Show Layer onclick="setVisibility( sub3 , inline );"/>
<input type="button" name="type" value= Hide Layer onclick="setVisibility( sub3 , none );"/>
<div id="sub3">Message Box</div>
</body> </html>
它主张使“div”消失并重新适用,但它在神学院工作,而不是在探索者。
没有人会想我如何能够在探索者中工作(我试图在探索者看到有关积极X的信息时允许冻结内容)?
感谢
Greg