View Full Version : css swaping
chuco61
01-28-2009, 11:12 PM
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?
Take a look at the following.
http://www.alistapart.com/articles/alternate/
http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm
chuco61
01-29-2009, 12:24 AM
thank you very much!
does the second link you provided randomly select a style without user interaction? i briefly looked it over.
The second link I provide you has a selection of themes and the user choses which to use.
chuco61
01-29-2009, 04:35 PM
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.
Medyman
01-30-2009, 12:00 AM
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).
chuco61
02-02-2009, 09:57 PM
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.