Problem med layers på mac
Jeg har lavet et site, hvor en .swf bliver vist i et layer. -Det virker fint nok på pc i explore 6.0, men i explore på mac går den helt amok!!!!the code:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="default" type="text/css">
<script language="JavaScript">
<!--
function showIt( divID ) {
hide();
document.getElementById(divID).style.visibility = "visible";
}
function hide(){
document.getElementById('Layer2').style.visibility = "hidden";
document.getElementById('Layer3').style.visibility = "hidden";
}
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
<script language="javascript" type="text/javascript">
var imgs = new Array();
imgs[0] = new Image();
imgs[0].src="pics/arrow.gif"
imgs[1] = new Image();
imgs[1].src="pics/blankspace.gif"
imgs[2] = new Image();
imgs[2].src="pics/close.gif"
imgs[3] = new Image();
imgs[3].src="pics/dotted_area.jpg"
imgs[4] = new Image();
imgs[4].src="pics/logo.jpg"
imgs[5] = new Image();
imgs[5].src="pics/picsshow.gif"
imgs[6] = new Image();
imgs[6].src="pics/red_line.gif"
imgs[7] = new Image();
imgs[7].src="pics/toppics.jpg"
imgs[8] = new Image();
imgs[8].src="pics/wheel.jpg"
imgs[9] = new Image();
imgs[9].src="pics/white_line.gif"
</script>
</head>
<body bgcolor="#000000" text="#000000" class="bodystyle" >
<div id="Layer1" style="position:absolute; width:590px; height:574px; z-index:1; visibility: hidden;">
<div id="Layer2" style="position:absolute; left:405px; top:211px; width:237px; height:140px; z-index:2; visibility: hidden;" >
<table cellspacing="0" cellpadding="0">
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="257" height="298" align="left">
<param name=movie value="flash/video1.swf">
<param name=quality value=high>
<embed src="flash/video1.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="257" height="298" align="left">
</embed>
</object></td>
<td valign="bottom" class="line"></td>
</tr>
</table>
</div>
<div id="Layer3" style="position:absolute; left:405px; top:211px; width:237px; height:140px; z-index:2; visibility: hidden;" >
<table cellspacing="0" cellpadding="0">
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="257" height="298">
<param name=movie value="flash/video2.swf">
<param name=quality value=high>
<embed src="flash/video2.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="257" height="298">
</embed>
</object> </td>
<td valign="bottom" class="line"></td>
</tr>
</table>
</div>
</div>
<table border="0" cellspacing="0" cellpadding="0" width="661" height="">
<tr>
<td height="48" class="header">What motivates you?</td>
</tr>
<tr>
<td height="445">
<table cellspacing="0" cellpadding="0">
<tr>
<td width="400" height="445">
<table cellspacing="0" cellpadding="0" class="box">
<tr>
<td width="400" height="445" valign="top">
<table cellspacing="0" cellpadding="0" height="445">
<tr>
<td class="normal_text">"In a few seconds we have the image!
Setting up a car shoot is very time consuming and so is
waiting 2 hours on film processing. Now our clients can
hardly keep up with us anymore" <br>
<font color="#0099CC">Steve Petrovich, commercial photographer,
USA</font><br>
<br>
"Continuity is crucial because models always need a few
seconds to get into the pace. Memory card is a killer
for fashion photography" <br>
<font color="#0099CC">Matthäus, fashion photographer,
Germany</font> <br>
<br>
"It's fun. You feel like a kid in the candy store again!
It's a whole new world. You want to play some more and
you keep pushing the limits!"<br>
<font color="#0099CC">Don Foley, commercial photographer,
Canada</font></td>
</tr>
<tr>
<td class="pics"><img src="pics/dotted_area.jpg"></td>
</tr>
<tr>
<td class="normal_text">Phase One’s H 25 digital camera
back is designed for the professional photographer unwilling
to compromise on customer satisfaction or photographic
excellence.<br>
<br>
On the one hand shooting digitally with Phase One is about
obtaining a competitive edge, saving time and money, and
expanding your business. However, it’s also about adding
a new dimension to the way you work. Immediate image approval,
precise colors, continuity and exciting new editing possibilities
appeal to photographers’ passion for creativity and experimentation.</td>
</tr>
<tr>
<td class="pics" ><img src="pics/logo.jpg"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="5"><img src="pics/blankspace.gif" height="1" width="5"></td>
<td width="256" height="445">
<table cellspacing="0" cellpadding="0" class="box">
<tr>
<td width="256" height="445">
<table cellspacing="0" cellpadding="0">
<tr>
<td height="160" valign="top" class="menu"><img src="pics/blankspace.gif" height="1" width="4"><img src="pics/arrow.gif" width="7" height="20">
<br>
<a href="#" class="menu">Datasheet</a> <font color="#FFFFFF">PDF
[18 kb]</font><BR>
<a href="#" class="menu">Newsletter</a><font color="#FFFFFF">
PDF [23 kb]</font><BR>
<a href="#" class="menu">Application catalogue</a> <font color="#FFFFFF">PDF
[42 kb]</font><BR>
<a href="#" class="menu" onclick="showIt('Layer3');">Videoreference:
Tupperware, US </a><font color="#FFFFFF"> [Flash 6]</font><BR>
<a href="#" class="menu" onclick="showIt('Layer2');">Videoreference:
Michael Furman</a><font color="#FFFFFF"> [Flash 6]</font><BR>
<a href="#" class="menu">Further information </a></td>
</tr>
<tr>
<td align="center" width="257"><img src="pics/picsshow.gif" width="246" height="276"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="14"><img src="pics/blankspace.gif" height="1" width="14"><a href="#"><img src="pics/close.gif" onClick="window.close()" border="0"></a><br>
<img src="pics/red_line.gif" height="1" width="400"></td>
</tr>
</table>A
</body>
</html>
