|
Hey littledove, I had a work around with this same problem. The way i did it was like this: $referrerURL = getenv("HTTP_REFERRER"); Put this line in the top of your shopping cart script. You could then use a switch statement like this: switch($referrerURL) { case "http://www.site1.com/page.php": $cssVar = "name of css file you would style the background with"; break; // put as many of these cases as you need sites and/or backgrounds // then you set default to a generic background style default: $cssVar = "name of your standard css file" break; } in your <head> section of the html you would call all your <link> tags and do something like this: <head> <meta data here> .. <link rel="stylesheet" href=""#cc0000" face="Courier New, Courier, monospace"><?php echo($cssVar); ?>" type="text/css" /> .. </head> hope this helps, and feel free to ask if you have any questions Brandtley McMinn littledove wrote: --Hope someone can help me figure this out ... How do I make the background image change according to the referring site in php and css?I have three sites pointing to a single shopping cart with SSL. I would like the background image of the cart to change depending on which site was clicked to go to the cart. Thanks for your help. Our Web site: http://www.RefreshAustin.org/ You received this message because you are subscribed to the Google Groups "Refresh Austin" group. [ Posting ] To post to this group, send email to [email protected] Job-related postings should follow http://tr.im/refreshaustinjobspolicy We do not accept job posts from recruiters. [ Unsubscribe ] To unsubscribe from this group, send email to [email protected] [ More Info ] For more options, visit this group at http://groups.google.com/group/Refresh-Austin |
- [Refresh Austin: 4695] php coding question about switching bac... littledove
- Re: [Refresh Austin: 4696] php coding question about switc... bmcminn
