Results 1 to 7 of 7

Thread: css swaping

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

    Default css swaping

    is there a way to change a css file with another on a page refresh?

    What about changing the whole look of a page on refresh? maybe switching from index to index2 which has the same layout but added elements?

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

  3. #3
    Join Date
    Aug 2008
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thank you very much!

    does the second link you provided randomly select a style without user interaction? i briefly looked it over.

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    The second link I provide you has a selection of themes and the user choses which to use.
    Jeremy | jfein.net

  5. #5
    Join Date
    Aug 2008
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    so is there a way for the css to automatically change, WITHOUT visitor interaction. I want it to change on refresh. Any ideas?

    Thanks for you help so far.

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

    Default

    Quote Originally Posted by chuco61 View Post
    so is there a way for the css to automatically change, WITHOUT visitor interaction. I want it to change on refresh. Any ideas?
    Sure, it's possible. I don't really recommend it. It goes against most conventions and usability standards.

    But, regardless, you could randomly pick a filename out of an array and use the styleswitcher.js functions to call it on refresh.

    If you need help with the code, I'm sure someone around here will be able to help (I'm not so good with actually writing JS, lol).

  7. #7
    Join Date
    Aug 2008
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Medyman View Post
    Sure, it's possible. I don't really recommend it. It goes against most conventions and usability standards.

    But, regardless, you could randomly pick a filename out of an array and use the styleswitcher.js functions to call it on refresh.

    If you need help with the code, I'm sure someone around here will be able to help (I'm not so good with actually writing JS, lol).
    Can someone possibly help me code this? I have 3 css files that call weather color schemes.

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
  •