Results 1 to 2 of 2

Thread: Send parameter to css page

  1. #1
    Join Date
    Dec 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Send parameter to css page

    Hi,
    i work on a website.on this website an administrator could change this site's color ,font-type etc. whenever he wants.
    i want to do it with css.first question is, if admin wants to change font-type how can i send this new font-type to css?

    second question: if admin wants to change color ,windows color pallette may open and admin can select color.but i dont know how can i do it

    please help me

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    You would do this by either setting a class or id. CSS variables aren't yet supported though there are proposals to that effect.

    You could use PHP if that is easier for you. Set up your browser to parse CSS as PHP. Make sure you send the correct CSS headers though.

    I'm not sure what "windows color pallette" you're referring to, but you might consider using a JavaScript-based widget of this functionality. I believe there is one in the DynamicDrive library. jQuery also has a widget for this.

Bookmarks

Posting Permissions

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