Hej
Tak for koden, men der er nogle problemer med den:
http://www.webfair.dk/indexexit.htmlJeg har også et andet spørgsmål til scriptet: else {
URL = "
http://www.webfair.dk/800_600/index8_6.html";window.location = URL; }
}
</script>
Er else funktionen beregnet til at sende bruge, hvor deres oplysninger af en eller anden grund ikke kan fremskaffes, så bliver de sendt til 800_600/index8_6.html?
Jeg har brugt denne kode, som ikke virker:
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 6">
<title>Welcome to Adobe GoLive 6</title>
<script language="javascript">
if (window.screen.width == 1280) {
URL = "
http://www.webfair.dk/webfair/index.html";window.location = URL; }
elsif (window.screen.width == 1152) {
URL = "
http://www.webfair.dk/webfair/index.html";window.location = URL; }
elsif (window.screen.width == 1024) {
URL = "
http://www.webfair.dk/webfair/index.html";window.location = URL; }
elsif (window.screen.width == 800) {
URL = "
http://www.webfair.dk/800_600/index8_6.html";window.location = URL; }
elsif (window.screen.width == 640) {
URL = "
http://www.webfair.dk/800_600/index8_6.html";window.location = URL; }
else {
URL = "
http://www.webfair.dk/800_600/index8_6.html";window.location = URL; }
}
</script></head>
<body bgcolor="#ffffff">
<p></p>
</body>
</html>