hallo,
die Situation:
ich habe ein fenster aus dem ein Fullscreen geöffnet wird.
Gleichzeitig, nachdem das Fullscreenfenster da ist, wird auf dem unteren Fenster auf ein html Document weitergeleitet.
Beim IE klappts prima- beide Netscape jedoch nicht.
ich beisse mir daran schon ne weile die Zähne aus und komme selbst mit selfhtml nicht mehr weiter.
Eventuell hat jemand ne Idee worans liegen könnte.
Die Datei zu der der Wechsel nicht stattfindet ist back.htm.
Jetzt schon mal ein Danke
peri
Hier der Script:
// variablen fuer Screens festlegen
var platform;
var typ;
var browser;
var breit;
var hoch;
// netscape fullscreen
nsspecial = "top=0,left=0,resizable=no" + ",width=" + screen.width + ",height=" + screen.height;
typ = parseInt(navigator.appVersion);
if(navigator.userAgent.indexOf('Win') == -1) {
platform = 'Macintosh';
} else {
platform = 'Windows';
}
if(navigator.appName.indexOf('Netscape') == -1) {
browser = 'IE';
} else {
browser = 'Netscape';
}
if((platform == 'Windows') && (browser == 'Netscape')) {
breit = 12;
hoch = 12;
}
if((platform == 'Windows') && (browser == 'IE')) {
breit = 10;
hoch = 28;
}
if((platform == 'Macintosh') && (browser == 'Netscape')) {
breite = 20;
hoch = 35;
}
if((platform == 'Macintosh') && (browser == 'IE')) {
breit = 20;
hoch = 35;
wopt = 'fullscreen=yes';
}
function launch(newURL, newName, newFeatures, nName) {
var connect = open(newURL, newName, newFeatures);
if (connect.opener == null)
connect.opener = window;
connect.opener.name = nName;
return connect;
}
// fullscreen funktion
function myfullscreen( url )
{
var whoch = screen.availHeight;
var wbreit = screen.availWidth;
if(window.screen.availwidth <= 650) {
this.location.href = "info.htm";
}
else {
if((wbreit < 1600)&&((browser == 'IE') && (typ >= 4))) {
var fullwindow= launch( url , "main", "fullscreen=1,location=0,menubar=0,resizable=0,scrollbars=0,channelmode=0,dependent=0,directories=0,status=1,toolbar=0", "mywin");
fullwindow.focus();
this.location.href = "back.htm";
} else {
window.open(url, "main", nsspecial);
fullwindow.focus();
this.location.href = "back.htm";
}
}