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&#8221;)

else if (screen.width==640||screen.height==480) //if monitor640x480
window.location.replace(“http://www.page_640x480.com&#8221;)

else if (screen.width==1024||screen.height==768) //if monitor1024x768
window.location.replace(“http://www.page_1024x768.com&#8221;)

else //if all else

window.location.replace(“http://other_resolution.com&#8221;) 

//–></script>

Belum Ada Tanggapan to “Redirect – berdasarkan Screen Resolution !”

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

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

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: