M
Mark
Hi - I want to allow users of an intranet application, to select their
own colours etc.
So I have a tbale in my database, which has fields called bgcolour,
fontcolour etc. As I want all pages to get the users colours, I have an
includes file at the top of each page:
<!--#include file="userconfig.asp" -->
This is:
<%
BGColour="#FFFFFF"
FontColour="#000000"
...recordset...
if not EOR.Recordset
BGColour=Recordset("BGColour")
FontColour=Recordset("FontColour")
End if
%>
Now I would like my style sheet to pick up these values, so I have put:
body {
background-color: <%=BGColour%>;
color: <%=FontColour%>
}
...and so on.
I include my style sheet in the normal way, so I have the following at
the top of each page:
<!--#include file="userconfig.asp" -->
<link rel="stylesheet" href="styles.css">
Problem is, the value does not appear to be read by the style sheet. Is
there something I'm doing wrong?
Thanks, Mark
own colours etc.
So I have a tbale in my database, which has fields called bgcolour,
fontcolour etc. As I want all pages to get the users colours, I have an
includes file at the top of each page:
<!--#include file="userconfig.asp" -->
This is:
<%
BGColour="#FFFFFF"
FontColour="#000000"
...recordset...
if not EOR.Recordset
BGColour=Recordset("BGColour")
FontColour=Recordset("FontColour")
End if
%>
Now I would like my style sheet to pick up these values, so I have put:
body {
background-color: <%=BGColour%>;
color: <%=FontColour%>
}
...and so on.
I include my style sheet in the normal way, so I have the following at
the top of each page:
<!--#include file="userconfig.asp" -->
<link rel="stylesheet" href="styles.css">
Problem is, the value does not appear to be read by the style sheet. Is
there something I'm doing wrong?
Thanks, Mark