|
| |
|
|
yogaboy
Posts: 377 Joined: 5/22/2004 Status: offline
|
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
%>
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|