Browser kompatibilitet
Kære eksperter,Hvordan kan det være at Internet Explorer, imodsætning til samtlige andre browsere, IKKE fremkalder det ønskede sideelement ved klik på billedet her på siden: http://www.blacksundog.dk/project.html ?
Hvordan får jeg det til at fungere ligesom i fx. Firefox?
Koden er givet nedenfor.
MVH
- Thomas.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="mystyles.css">
<script language="JavaScript" src="login.js">
</script>
<meta name="generator" content="Namo WebEditor v5.0(Trial)">
<script type="text/javascript">
var newwindow;
function poptastic(url)
{
newwindow=window.open(url,'name');
if (window.focus) {newwindow.focus()}
}
var newwindow;
function poptastik(url)
{
newwindow=window.open(url,'name','height=340,width=310,scrollbars=no,left=250,top=200');
if (window.focus) {newwindow.focus()}
}
</script>
<script type="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href,windowname, 'width=310,height=340,scrollbars=yes, left=450,top=200');
return false;
}
//-->
</script>
</head>
<body>
<div id="picture">
<img src="tilstede.JPG" width="100%" height="100%"></div>
<div id="mantra">
<iframe src="intro1.html" name="content" width="370px" height="200px" frameborder="0" scrolling="no" background-color="transparent"></iframe>
</div>
<div id="login">
<body bgcolor="#E4E7E7" bgproperties="fixed">
<div align="left" style="width: 980; height: 97">
<form method="post" action="" name="form1">
<table width="327" border="0" cellspacing="2" cellpadding="0" align="center">
<tr>
<td width="37"><font face="Impact" size="5"><b>Login:</b></font></td>
<td width="221" colspan="0"></td>
<td rowspan="0" width="43">
<font color="#000000" size="2"><input type=button value="Login" onClick="java script:Login()" name="button">
</font></td>
</tr>
<tr>
<td width="68"><font color="white" size="4">Brugernavn:</font></td>
<td width="149">
<font color="#000000" size="2"><input type="text" name="username">
</font></td>
</tr>
<tr>
<td width="58"><font color="white" size="4">Password:</font></td>
<td width="49">
<font color="#000000" size="2"><input type="password" name="password">
</font></td>
</tr>
</table>
</form>
</div>
</div>
<div id="register">Afgiv dine oplysninger
<a href="registration.html" onclick="return popup(this, 'notes')"><input type="Submit" name="register" value="HER"></a> for at få adgang til denne side.
</div>
<div id="click"
onMousedown='document.getElementById("login").style.visibility="visible";
document.getElementById("register").style.visibility="visible"';></div>
</body>
</html>