Redirect – berdasarkan Screen Resolution !
Berikut ini adalah JavaScript untuk Redirect WebPage berdasarkan ukuran Resolusi Screen Monitor. simple, mudah dimengerti.
Script :
<script language=”JavaScript1.2″><!–
if (screen.width==800||screen.height==600) //if monitor800x600
window.location.replace(“http://www.page_800x600.com”)else if (screen.width==640||screen.height==480) //if monitor640x480
window.location.replace(“http://www.page_640x480.com”)else if (screen.width==1024||screen.height==768) //if monitor1024x768
window.location.replace(“http://www.page_1024x768.com”)else //if all else
window.location.replace(“http://other_resolution.com”)
//–></script>