Menu
I found a script a javascript.internet.com:
[CODE]
<script type=”text/javascript”>
if (screen.width < 1024)
link = document.getElementsByTagName(“link”)[0];
link.href = “size800.css”;
</script>
Here’s the source [url]http://javascript.internet.com/css/style-sheets-by-resolution-3.html
but it doesnt seem to work, i placed it in my header, and i have created a CSS for it. But it doesn’t load when I adjusted my screen resolution.
Did I miss something? or is there something wrong with the code? need help i’m a javascript newbie ?