Article View: be.comp.programming
Article #7830Redirect script
From: Cronselaar Marc
Date: Wed, 31 Jul 2002 05:01
Date: Wed, 31 Jul 2002 05:01
29 lines
1794 bytes
1794 bytes
Hallo,
Reeds geruime tijd gebruik ik onderstaande code om bezoekers - op basis van
de schermresolutie -
door te sturen naar een bepaalde pagina. Bestaat de mogelijkheid dit script
niet werkt onder windows
xp ???
Dank voor jullie bericht,
------
<script LANGUAGE="JavaScript">
function redirectPage() {
var url640x480 = "niet_beschikbaar.htm";
var url800x600 = "activiteiten_800.htm";
var url1024x768 = "activiteiten_1024.htm";
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= url1024x768;
}
// -->
</script>
-----
Technical Details
Message-ID:
<3d476e96$0$30455$afc38c87@sisyphus.news.be.easynet.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!feed.news.nacamar.de!newsfeed.online.be!feed1.news.be.easynet.net!sisyphus.news.be.easynet.net!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit X-Google-Thread: fcea4,533830de1ffd84ec,start X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2002-07-30 22:07:17 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!feed.news.nacamar.de!newsfeed.online.be!feed1.news.be.easynet.net!sisyphus.news.be.easynet.net!not-for-mail From: "Cronselaar Marc" <m.cronselaar@easynet.be> Newsgroups: be.comp.programming Subject: Redirect script Date: Wed, 31 Jul 2002 07:01:11 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Lines: 32 Message-ID: <3d476e96$0$30455$afc38c87@sisyphus.news.be.easynet.net> Organization: [ posted via Easynet Belgium ] NNTP-Posting-Host: 213.193.182.57 X-Trace: 1028091543 30455 213.193.182.57 X-Complaints-To: abuse@be.easynet.net