View Full Version : personalize site with css
schroom
11-02-2002, 11:41 AM
I am trying to figure out how best to personalize a site using javascript and css. That is when a person comes to my site, depending on where they came from, (will use the document.referrer -for this part) dispaly css 1 vs css2 to certrain tags. I would think there would be an example of this out there. I have seen an example of when a person comes to a site - then choose be selecting a form.
Any Ideas on this would be a big help.
Borgtex
11-02-2002, 01:57 PM
Not exactly what you're asking for, but I think that you will find it very interesting:
http://www.alistapart.com/stories/alternate/
schroom
11-02-2002, 02:46 PM
Yes, thank you it is very interesting, maybe I can use some of it.
Thanks:)
beetle
11-02-2002, 04:37 PM
You may have a problem with establishing 'user preferences' based on the referring document. What if the user adds the page to his/her favorites? On the next visit, there will be no referring document, and you may deliver the wrong stylesheet. You may want to set a cookie at the initial visit, and read that cookie on each subsequent visit instead.
schroom
11-02-2002, 04:47 PM
Thank you very much!! I had never thought of that, and alot rests on that and how I would code, I was hoping to avoid cookies, but I do not believe that would be possible now. Thanks
:eek:
beetle
11-02-2002, 09:31 PM
Ya. No reason to avoid cookies here. Storing user prefs is part of their raison d'être. :D
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.