|
yogaboy -> changing stylesheet for screen res (9/21/2004 18:34:39)
|
Hello Outfronters, I've been trying to change the stylesheet used depending on the user's screen res. I made this code, it picks up the screen res no probs, and the ASP code picks up the ScreenWidth from the VBScript (I can get it to Response.Write ScreenWidth for example), it's just not including the css file. Can anyone see why?? I'm new to ASP and it's starting to do my head in!!![:(] Iain
<script language="vbscript">
<!--
Dim ScreenWidth
ScreenWidth = window.screen.width
-->
</script>
<%
If ScreenWidth = 800 then
<!-- #INCLUDE FILE="css800.txt"-->
else
<!--#INCLUDE FILE="css1024.txt"-->
End if
%>
|
|
|
|