Markus Thomas: Auflösungserkennung und weiterleitung.

Beitrag lesen

Hallo!

[...]

// fullscreen funktion
function myfullscreen( url )
{
var whoch = screen.availHeight;
var wbreit = screen.availWidth;

if(window.screen.availwidth < 655) {
this.location = "info.htm";

^^[1]

} 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 = "back.htm";

^^[2]

} else {
window.open(url, "main", nsspecial);
fullwindow.focus();
this.location = "back.htm";

^^[3]

}
}
}

// standard browser fenster funktion mit ausweichmoeglichkeit falls das fenster zu klein ist
function mystandard( url )
{
var wbreit = screen.availWidth;
var whoch = screen.availHeight;
if(window.screen.availwidth < 800) {
this.location = "info.htm";

^^[4]

} else {
this.location = url;

^^[5]

}
}

[1] - Es muß jeweils this.location.href heißen.

Gruß Markus


  1. 1 ↩︎

  2. 1 ↩︎

  3. 1 ↩︎

  4. 1 ↩︎

  5. 1 ↩︎