![]() |
| Sponsored Links (We share ad revenue): |
|
|
Re: Visitor able to change width of page??? |
|
Full-Time TeraTasker
Posts: 630
Name: Jeremy Miller
Location: Reno, NV
|
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 - TeraTask Technologies, LLC Content Farmer - Automated Posting for Content & Blog Sites |
|
|
|
|
|
Re: Visitor able to change width of page??? |
|
Extreme Talker
Posts: 176
Name: Rachel
Location: Spain
|
lol.... you always come to my rescue Jeremy!!!
I looked a little more and finaly found this link... which I think will do the job... www.beautyindesign.com/quick_clips_library/adjusting_a_site_layout_with_mootools.php Thanks Rachel ![]()
__________________
|
|
|
|
| Sponsored Links (We share ad revenue): |
| Thread Tools | |
|
|
| Webmaster Resources Marketplace: |
| Software Development Company | Webhosting.UK.com |
| Web Templates | Text Link Brokers | Stock Photos |