Jump to content

javascript help

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
-Hurricane-

-Hurricane-

    Newbie

  • Members
  • Pip
  • 9 posts
i know how to change the
bgcolor of a document with
javascript and i also know how
to set cookies.
Okay, my problem is simple,
how do i allow a user to change
the background color of my
website and after returning to
the website he/she should get
the same background-color he
visited for the first time.
pls help me!!!.

#2
Deadlock

Deadlock

    Learning Programmer

  • Members
  • PipPipPip
  • 81 posts
Store the selected color in a cookie. Simple as that.

#3
-Hurricane-

-Hurricane-

    Newbie

  • Members
  • Pip
  • 9 posts
how do i retrieve it ?

#4
Deadlock

Deadlock

    Learning Programmer

  • Members
  • PipPipPip
  • 81 posts
Javascript Cookie Script: Get Cookie, Set Cookie, Delete Cookie Functions