Zoque.Forum
»
Çözünürlüğe göre yönlendirme
|
| ://www Web tasarımı ve internet ile ilgili olarak karşılaştığınız problemleri ve merak ettiklerinizi burada tartışabilirsiniz. |
![]() |
|
|
LinkBack | Seçenekler |
|
|
#1 (permalink) |
|
Üyelik Tarihi: 06.01.2004
Yer: Istanbul
Yaş: 23
Mesaj: 178
|
Çözünürlüğe göre yönlendirme
Hazırladığım siteyi kullanıcının çözünürlüğüne göre ayrı sayfalara yönlendirmek istiyorum. Bunun üzerine elinde JavaScript kodu olan varmı? Şimdiden tşk.
|
|
|
|
|
|
#2 (permalink) |
|
Üyelik Tarihi: 31.07.2001
Yer: Edirne
Yaş: 21
Mesaj: 462
|
Re: Çözünürlüğe göre yönlendirme
http://www.hotscripts.com/JavaScript/Scripts_and_Programs/Redirection/Resolution_Based/ adresinde isteğine göre seçebilirsin.
__________________
/home/fatih/ | Registered Linux User #384896 |
|
|
|
|
|
#3 (permalink) |
|
Re: Çözünürlüğe göre yönlendirme
<HTML>
<head> <script LANGUAGE="JavaScript"> <!-- Begin function redirectPage() { var url640x480 = "http://www.isim.com/640x480.HTML"; var url800x600 = "http://www.isim.com/800x600.HTML"; var url1024x768 ="http://www.isim.com/1024x768.HTML"; if ((screen.width == 640) && (screen.height == 480)) window.location.href= url640x480; else if ((screen.width == 800) && (screen.height == 600)) window.location.href= url800x600; else if ((screen.width == 1024) && (screen.height == 768)) window.location.href= url1024x768; else window.location.href= url640x480; } // End --> </script> </head> <body OnLoad="redirectPage()"> </body> </HTML>
__________________
MertGutavPortfolio |
|
|
|
|
Zoque'a hoşgeldiniz!