Hi, I grabbed a little snippet of code from the forums which shows a random image on the homepage -
forum.x-cart.com/viewtopic.php?t=6321
It works perfectly but I wanted to use it to display random images as the background of a table, so that if the browser window was increased it would just show more of the background image without repeating. This is what I have in my CSS file:
Quote:
.HomepagePics {
BACKGROUND: #FFFFFF no-repeat;
}
|
And in the customer/main/welcome.tpl I have this:
Quote:
<table width="100%" height="290" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="{$ImagesDir}/homepics/psco{"1"|mt_rand:3}.jpg" class ="HomepagePics"></td>
</tr>
</table>
|
The only browser this has worked in is Safari on Mac - works perfect. I have tried in Explorer, Netscape, Opera, Firefox on Mac & Windows but all show a blank space where the images should be... Can anyone think why this is?? Website in my profile - still in development. All suggestions & feedback welcome - there is still alot of X-Cart default text so please ignore that for now.
Thanks for any help!!
Danny.