Aktuell
Webdesign
C M S
Drucksachen
Service
Kontakt
Kunden

Webkatalog
Sitemap
IT-Shop
Java Script
Seiten-Header
Datum
Bildschirmweiche
Tag / Nacht
Uhr 1
Ferrari Wallpaper
Downloads
Browser
Mal lachen

STARTSEITE - SERVICE - JAVA SCRIPT - BILDSCHIRMWEICHE

 

 

Weiche für verschiedene Auflösungen



Dieses script ermöglicht eine automatische Weiterleitung zu einer Seite für 800 x 600 oder 1024 x 768 Pixel Auflösung.

 

Kopieren Sie dieses script in eine öffnende Seite und legen Sie sich 2 weitere Seiten mit dem Inhalt an. Die eine nennen Sie 1024x768.html, die andere 800x600.html:


HEAD:



<script language="JavaScript1.2">

function ScreenGoToURL(Big,Medium) {

var screen_height = screen.height;

var screen_width = screen.width;

var buffer = (document.all || document.layers ||documentGetElementByID) ? 30 : 48;

if (screen_height >= 768) {

 screen_width = 1024;

 screen_height = 768;

  var window_width = 1024-12;

     var window_height = 768-buffer;

     var window_top = 0;

     var window_left = 0;

     window.open(Big,'','resizable=no,status=yes,width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + '');

} else {

 screen_width = 800;

 screen_height = 600;

 var window_width =  800-12;

    var window_height = 600-buffer;

 var window_top = 0;

    var window_left = 0;

    window.open(Medium,'','resizable=no,status=yes,width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + '');

}
}
</script>



BODY



<BODY onLoad="ScreenGoToURL('1024x768.html','800x600.html')">