Master Summoner
- Joined
- Oct 9, 2008
- Messages
- 572
- Reaction score
- 14
Heya long time no see, I'm brining a little script, that aparently doesn't work as I thought it would, it simply times out, which annoys me quite well. Heres the script:
I've been trying to figgure it out, but I seems that its as easy as I thought..
Help is very much appreciated!
Code:
if (screen.width == 1280) {
window.location='index.php?w=1280';
}
else if (screen.width == 1024) {
window.location='index.php?w=1024';
}
else if (screen.width == 800) {
window.location='index.php?w=800';
}
else {
document.write("Your screen resolution was not supported, I apologize.");
}
I've been trying to figgure it out, but I seems that its as easy as I thought..
Help is very much appreciated!