Christoph Bohm: Abfrage von Style-Sheets

Beitrag lesen

<div style="position:absolute;left:-500px;top:-500px">
Bitte Stylesheets einschalten!
</div>

<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function poppen(URL) {
  pop = window.open (URL,"","scrollbars=no,menubar=no,toolbar=no,resizable=no,width=400,height=300,left=100,top=40,");
}

function testen() {
if (document.layers) {
if (!document.layers['tester']) poppen('pop_loser.html');
else poppen('pop_winner.html');
}
else if (document.all) {
         if (document.all.tester.style.textAlign=="center")
                  poppen('pop_winner.html');
else poppen('pop_loser.html');
}
else document.write ("Du hast noch nicht mal 'nen 4er Browser!");
   }
</SCRIPT>

</HEAD>

<BODY BGCOLOR="#FFFF00" onload testen();>

<DIV ID="tester" STYLE="position: absolute; visibility: hidden; text-align: center;"> </DIV>
</BODY>