Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Random Images as table background

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-31-2005, 04:41 PM
 
dannyrus dannyrus is offline
 

Member
  
Join Date: Sep 2005
Posts: 18
 

Default 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.
__________________
Danny - Photoscope Б─╒ X-Cart Version 4.0.14
Reply With Quote
  #2  
Old 11-01-2005, 03:21 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Website isn't in your profile, please post a link
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-01-2005, 01:48 PM
 
dannyrus dannyrus is offline
 

Member
  
Join Date: Sep 2005
Posts: 18
 

Default

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

Thanks!!
__________________
Danny - Photoscope Б─╒ X-Cart Version 4.0.14
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:34 AM.

   

 
X-Cart forums © 2001-2020