English 中文(简体)
Javascript working in chrome but not insearchr
原标题:Javascript working in chrome but not in explorer

我在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

问题回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签