Re: Newbie NN4 help...

From: Date: Sun, 20 Oct 2002 16:10:51 +0000
Subject: Re: Newbie NN4 help...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-120670@lists.php.net to get a copy of this message
Hello, On Sunday, October 20, 2002 11:22 PM Subject: Re: [PHP] Newbie NN4 help... Stephanie Sullivan wrote: ...[snip]... > Well, the reason I don't think it's related to my paths is that it shows the > ORIGINAL style sheet... It just won't switch to a new one... They all have > the same path... OK. Perhaps, what I noticed is for a different topic: The path for your "alternates" have ".././". Don't you think it should have two dots instead of one? I think this doesn't have anything to do with the original problem but those "alternates" doesn't really do anything in your code. > >> My problem lies with SWITCHING to another style sheet using my > >> PHP switcher... And it works in every other browser I tried > > > > So, how come you suspect that PHP is the problem? If it works on other > > browsers, that means, most likely the problem lies somewhere else. For > > example, NN will not work with @import. (I think you know that.) NN also has > > a lot of problems relative paths. And most of the time, putting the > > (external) CSS in the webroot folder fixes many problems. > > Then why would it see my path but then NOT see it when I "switch" the > sheets? Have you tried putting them in a place where you wouldn't need to use "../../", etc.? ...[snip]... > > It's not... It remains the original smreg.css sheet in the code and on the > page... Which is what I'd expect since my page color and text size didn't > change. Well, then, now I think I'm convinced that the problem is with your "switcher"... > > PS. > > If ever, just try posting your code esp. the portion where you think the > > problem lies... > > Hmmm... The code you posted looks very similar to what I'm using... Here's > my code: http://contrastsweb.com/switcher/ Interesting. The code that I posted was just for *testing*. Have you tried it? Did you notice one big difference? The (very "crude") code that I posted actually works in NN(4.78) the one that you're using doesn't. -> http://contrastsweb.com/switcher/example.php (In my NN, it's always "normal.css".) There are at least two things you could do: 1. Tell the author that there seems to be a problem with the "switcher". I'm sure the person will be happy to hear about it and perhaps give you some advice how to fix it. Or, 2. Try creating your own. This way, you'll know how your own "switcher" works. And perhaps, if there's a problem, you can ask the list more specific questions while showing us which part of the code is creating havoc. Try # 2--I'm sure you can do it... ;) - E

« previous php.general (#120670) next »