dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Making link to different CSS's dynamic

  1. #1
    Join Date
    Jan 2003
    Location
    Australia
    Posts
    27

    Question Making link to different CSS's dynamic

    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'.

    Any ideas?

    Thanks!

    ~MVA

  2. #2
    Join Date
    Jan 2003
    Location
    Australia
    Posts
    27
    I am currently programming this application in JavaScript/ASP (which I am new a coding).

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

    Thought it would be a simple thing.

  3. #3
    Join Date
    Jan 2003
    Location
    Australia
    Posts
    27
    Sorry, but since I am new at this - I need to know in detail what you mean by "Just have your ASP code previously set the varName variable with the name of the stylesheet you want to load."

    ~MVA

  4. #4
    Join Date
    Jan 2003
    Location
    Australia
    Posts
    27
    As I posted before...the CSS to be displayed depends upon the data in the field "Design". If "design" = 'A' then display this page with DesignA.css, and so on.

    ~MVA

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles