Can any1 see whats wrong with this javascript? it keeps out putting the last if() even when its not ture
| Code: |
|
if ((screen.width>=800) && (screen.height>=600) && (screen.width<1024) && (screen.height<768)) {document.write('<link rel="stylesheet" href="screen_small.css" type="text/css">')} if ((screen.width>=1024) && (screen.height>=768) && (screen.width<1280) && (screen.height<1024)) {document.write('<link rel="stylesheet" href="screen_medium.css" type="text/css">')} if ((screen.width>=1280) && (screen.height>=1024)) {document.write('<link rel="stylesheet" href="screen_large.css" type="text/css">')} |
