Re: Onclick event and PHP function

From: Date: Wed, 15 Feb 2006 18:55:37 +0000
Subject: Re: Onclick event and PHP function
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-230456@lists.php.net to get a copy of this message
Pretty much the same technique I am using, tedd. I may have even used your example as inspiration... :) At the top of each page, I use $currentstylecolor = isset( $_COOKIE['currentstyle'] ) ? $_COOKIE['currentstyle'] : "brown"; // brown = default style $currentstyle = "/skins/style_" . $currentstylecolor . ".css" ; then <link rel="stylesheet" type="text/css" href="<?php echo $currentstyle ?>" > Gerry On 2/15/06, tedd <tedd@sperling.com> wrote: > >Alain, have you tried cookies? > > > >On http://www.lily-gallery.com/ you will see 2 colored dots > >(bottom > >left) that allows for alternate page colors. Once a user chooses one, > >I remember his choice with a cookie. I use the cookie to control a > >style sheet. > > > >Gerry > > > I didn't realize that he was wanting a clickie cookie thingie. > > Check out: > > http://www.sperling.com/examples/styleswitch/ > > tedd > -- > -------------------------------------------------------------------------------- > http://sperling.com/ >

« previous php.general (#230456) next »