Danzoe’s Webloz
Just another Danzoe webloz !

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>

No Responses ke “Redirect – berdasarkan Screen Resolution !”

Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Ubah )

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s

Ikuti

Get every new post delivered to your Inbox.