Click to See Complete Forum and Search --> : Making link to different CSS's dynamic


mangeloni
01-28-2003, 10:38 PM
I have 3 different CSS files: DesignA.css, DesignB.css, and DesignC.css. I want to display a particular page with one of these CSS's depending upon a table field 'Design' and it's respective value 'A' 'B' or 'C'.

I am currently programming this application in JavaScript/ASP (I am new at coding).

So I was just looking for some code to put into <link rel=stylesheet href="/path/<dynamic code here>" type="text/css">

Any ideas? :cool:

Thanks!

~MVA

Stefan
01-29-2003, 10:56 AM
Originally posted by mangeloni
Any ideas? :cool:


You'll probably get more and better answers asking in the JavaScript and/or ASP section, since the solution this is not a CSS related question. :)

Ribeyed
01-30-2003, 04:40 AM
Hi,
i agree with you Stefan this is an ASP question, still to keep answers to questions in the same thread i will answer this one here, sorry if posting in wrong forum:( .

pull your values from the database and then write value to variable

designletter = rs("design")
<link rel=stylesheet href="/path/design<%=designletter%>.css type="text/css">

hope this helps