Ich hätte da mal wieder ein Problem. Ich habe die Extension MFX Fullscreen von Macromedia. Bei dem einen Link funktioniert es, beim anderen nicht. Und ich habe genau das gleiche gemacht. Hier die Seite, bei der das Verhalten Fullscreen nicht klappt:
Wenn mir jemand sagen kann, was ich falsch gemacht habe...
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Unbenanntes Dokument</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
funktion full (menue.htm)
{
window.open (menue.htm,"","fullscreen");
}
//-->
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MachakFull(Ie,other){
//Copyright © 1999 m.milicevic machakjoe@netscape.net jjooee@tip.nl
x=screen.availWidth;
y=screen.availHeight;
target = parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-1,navigator.appVersion.length));
if((navigator.appVersion.indexOf("Mac")!=-1) &&(navigator.userAgent.indexOf("MSIE")!=-1) &&(parseInt(navigator.appVersion)==4))
window.open(other,"sub",'scrollbars=yes');
if (target >= 4){
if (navigator.appName=="Netscape"){
var MachakFull=window.open(other,"MachakFull",'scrollbars=yes','width='+x+',height='+y+',top=0,left=0');
MachakFull.moveTo(0,0);
MachakFull.resizeTo(x,y);}
if (navigator.appName=="Microsoft Internet Explorer")
window.open(Ie,"MachakFull","fullscreen=yes");
}
else window.open(other,"sub",'scrollbars=yes');
}
//-->
</script>
</head>
<body background="grafik%20eyefood/Hintergrund.jpg" text="#FFFFFF">
<table width="977" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="139" height="248"></td>
<td width="781"> </td>
<td width="43"></td>
<td width="24"></td>
</tr>
<tr>
<td height="115"></td>
<td rowspan="3" valign="top"><img src="grafik%20eyefood/frontbild1.jpg" width="781" height="284"></td>
<td colspan="2" valign="top"><img src="grafik%20eyefood/frontbild2.jpg" width="67" height="115"></td>
</tr>
<tr>
<td height="49"></td>
<td valign="top"><a href="2.seite.htm"><img src="grafik%20eyefood/pfeil-eyefood.gif" name="Image5" width="43" height="49" border="0" onClick="MachakFull('2.seite.htm','2.seite.htm')"></a></td>
<td valign="top"><img src="grafik%20eyefood/frontbild4.jpg" width="24" height="49"></td>
</tr>
<tr>
<td height="120"></td>
<td colspan="2" valign="top"><img src="grafik%20eyefood/frontbild3.jpg" width="67" height="120"></td>
</tr>
</table>
</body>
</html>
Hier die Seite, von der das Verhalten Fullscreen klappt:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>visualsmenue</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body background="grafik%20eyefood/Hintergrund%20ohne.jpg" onLoad="MM_preloadImages('grafik%20eyefood/PFEIL%20UNTEN.jpg')">
<table width="143" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutDefaultTable-->
<tr>
<td width="71" height="476"> </td>
<td width="40"> </td>
<td width="32"> </td>
</tr>
<tr>
<td height="40"> </td>
<td valign="top"><a href="2.seite.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','grafik%20eyefood/PFEIL%20UNTEN.jpg',1)"><img src="grafik%20eyefood/PFEIL%20OBEN.jpg" name="Image1" width="40" height="40" border="0"></a></td>
<td> </td>
</tr>
<tr>
<td height="24"> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>