anybody know how to set color according to selection button: red, the interface change to red,blue:..to blue, for example this site:
http://www.promosi-web.com
Moderators: macek, egami, gesf

if(isset($cl)) {
$image = "logo_" . $cl . ".gif";
} else {
$image = "logo_blue.gif";
}

G3D wrote:You just change the style sheet based on the selection.
This site actually has five versions of the images and the page is just loading an image based on what $cl is currently set to.
You could for example load the relevant logo with the following, not saying this is the best approach, just an example.
- Code: Select all
if(isset($cl)) {
$image = "logo_" . $cl . ".gif";
} else {
$image = "logo_blue.gif";
}
setcolor.php?cl=blue
Users browsing this forum: No registered users and 1 guest