Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sk3pt1c

macrumors 6502a
Original poster
Nov 29, 2005
918
6
a simulacrum
i'm making my fourth paid site and came up with an idea.
i thought it'd be nice if people viewing the website could
select a wallpaper they like and apply it to the site.
i gather that could be done with javascript.
i have programmed before so i should be able to do it,
but i haven't done any javascript so far.
what i think would need to happen is to have some trigger
to change the background attribute on a css inline style
and have a way of remembering that throughout the site until
the user changes the background again.
would that be relatively easy or hard to do, if anyone knows?
i'd just like to get some opinions and ideas on it, followed by
some research before i suggest it to my client
thanks
john

ps. also, could you suggest a good book on Javascript for web designers?
 
I'm not really sure of what you mean. I'm assuming you want something like www.spoono.com (click Flavor). It's completely php-based along with CSS however. In fact, I think there is code on the web that actually has it to where it can be used mainly by CSS, but I forgot where.

Well, good luck with whatever you do. I just wanted to throw in my two cents so you could see how they did it and maybe use that way instead. Peace.
 
You can store the user preferences in their cookie if you do not want to have any login mechanism on your website. Also, you can use javascript to edit the style attributes of the body tag to modify the background of the page (after detection of their cookie with JS).
 
i guess i'm looking for something in between what you guys said
got any suggestions for a good javascript book?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.