|
It sounds like you've figured it out -- when they click on a size, adjust the main page content width and store the value in a cookie. Then, when a page loads, read the value of the cookie to set the initial content width.
An alternative, but more sophisticated, method is to store a user id as a cookie and then use Ajax to call the server with the user's settings. The information could then be stored server-side along with the user id and subsequently be used to set the initial page width.
The second method has some advantages:
1) You can set as many characteristics as you want since each characteristic won't require a separate cookies.
2) You can see what your visitors prefer by querying the table.
3) The settings cross multiple browsers (when the user is logged in and that code is set).
__________________
Jeremy Miller
Please login or register to view this content. Registration is FREE
|