X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Random Images as table background (https://forum.x-cart.com/showthread.php?t=17648)

dannyrus 10-31-2005 04:41 PM

Random Images as table background
 
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.

balinor 11-01-2005 03:21 AM

Website isn't in your profile, please post a link :)

dannyrus 11-01-2005 01:48 PM

I tried to add again to my profile but it's not taking. Anyway website is www.photoscope.com.au/home.php

Thanks!!


All times are GMT -8. The time now is 09:27 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.