Tutorials Infos - Anleitungen - Hilfe - Dreamcodes
 

Browser Slide

Um User umzuleiten in Abhängigkeit von ihrer Bildschirm Auflösung einfach in die Datei von der aus umgeleitet werden soll folgendes JavaScript in den Head Abschnitt packen:

Script:

<script language="JavaScript1.2">
<!--
if (screen.width==800||screen.height==600) 
window.location.replace("http://www.domain.de/index800.html")
else if (screen.width==640||screen.height==480) 
window.location.replace("http://www.domain.de/index640.html")
else if (screen.width==1024||screen.height==768)
window.location.replace("http://www.domain.de/index1024.html")
else if (screen.width==1280||screen.height==1024)
window.location.replace("http://www.domain.de/index1280.html")
else 
window.location.replace("http://www.domain.de/indexHigh.html") 
//-->
</script>

 
ID: 242
eingestellt am: 16.02.2004
Autor: CSN
Status zum lesen: Gast
gelesen: 8803
Webseite: www.dreamcodes.com
[Drucken]