Javascript question

Discussion in 'Web Design and Development' started by sk3pt1c, Mar 27, 2007.

  1. sk3pt1c macrumors 6502a


    Nov 29, 2005
    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

    ps. also, could you suggest a good book on Javascript for web designers?
  2. Mooey macrumors regular

    Feb 8, 2007
    I'm not really sure of what you mean. I'm assuming you want something like (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.
  3. angelneo macrumors 68000

    Jun 13, 2004
    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).
  4. sk3pt1c thread starter macrumors 6502a


    Nov 29, 2005
    a simulacrum
    i guess i'm looking for something in between what you guys said
    got any suggestions for a good javascript book?
  5. epochblue macrumors 68000


    Aug 12, 2005
    Nashville, TN

Share This Page