Marc Reichelt: Suche Script, dass fenster exakt in der mitte positioniert

Beitrag lesen

Hi!

<script language="text/JavaScript">
<!--
if(screen.width = 1024)

Was ist das denn? Eine Zuweisung in einer if-Abfrage? ;-)
Das muss natürlich == heißen.

window.location.href = "start1024.html"
else if(screen.width = 1280)

Und hier ebenfalls.

window.location.href = "start1280.html"
else
window.location.href = "looserindex.html"
//-->
</script>

So, jetzt dürfts klappen!

cu

Marc Reichelt || http://www.marcreichelt.de/

--
Linux is like a wigwam - no windows, no gates and an Apache inside!!!
SELFCode: ss:| zu:) ls:[ fo:} de:[ va:} ch:? sh:) n4:° rl:? br:^ js:( ie:% fl:) mo:)
http://emmanuel.dammerer.at/selfcode.html