using oscommerce in template_top.php is the body tag. i want one body background image for index.php and another for the other pages.
my styles
[code] body {
color: hsl(0, 0%, 0%);
margin: 0px;
font-size: 11px;
font-family: Lucida Grande, Lucida Sans, Verdana, Arial, sans-serif;
background-image: url(‘http://www.example.com/images/body.jpg’);
background-repeat: repeat-x;
}
body.index {
color: hsl(0, 0%, 0%);
margin: 0px;
font-size: 11px;
font-family: Lucida Grande, Lucida Sans, Verdana, Arial, sans-serif;
background-image: url('http://www.example.com/images/index.jpg');
background-repeat: repeat-x;
}[/code]
i found this from a forum somewhere:
[php]<?php
$baseurl = ‘http://www.example.com’; //set the base url of the site
$pageYouWant = $baseurl."/the-rest-of-the-url"; //add the rest of the url you want to check against
$currentPage = $baseurl.$_SERVER[‘REQUEST_URI’];// this gets the current page url
if($pageYouWant==$currentPage) {
//do something
}
?>[/php]
and am trying this in the do something
[php]
<?php }else{ <?php }?>[/php]i have tried manipulating this code but - well i need help.
thanks