On 11/05/06, 1802 <[EMAIL PROTECTED]> wrote:

http://www.adtweb.it/beta/home.html

1. In the right of the site, there is a Orange: clik on this, a js
load the "alt" css (1802b.css). On my actual site(try to clik on
"Style" in the left
http://homepage.mac.com/matteo.discardi/home.html), this js works
fine and the new style remains in all page: in this new version,
every new page reload the first css (1802a.css). Why?

Having a quick look, I would say it is because the cookie where the
style preferance is saved, is not been read. This is likely to be
caused by 2 functions been attached to the windows's  onload event.
The second function [in blank.js] is cancelling out the first - which
reads the cookie and restores the users last choosen stylesheet. I
suggest using one of the many "add load listener" or "schedule" type
scripts which are common across the net (Google it) to tirgger
multiple functions once the window or required object has loaded.
******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to