PDA

Click to See Complete Forum and Search --> : Changing Style Sheet in the <HEAD> tag


Wokawidget
Mar 22nd, 2005, 03:05 AM
The code I have got at the moment ls:

<HEAD>
<title>Entering Site</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<link rel="StyleSheet" href="aquserv.css" type="text/css">
</HEAD>

What I would like is to specify the href at runtime, so instead of hard coding I would like "aquserv.css" to be able to be dynamic and chanegd at runtime...Anyone have any idea?

Woka

veryjonny
Mar 22nd, 2005, 09:34 AM
crude asp code...but, I guess would work.

<link rel="StyleSheet" href="
<%
'Some code to generate runtime css file
response.write "finallyIGotThecssToDisplay.css")
%>
" type="text/css">

mendhak
Mar 22nd, 2005, 11:09 AM
http://www.alistapart.com/articles/alternate/