| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Random pictures in home.tpl | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I'd like to have random picture javascript in my home.tpl code but don't know how to go about doing it. I've tried copying and pasting some pre-coded stuff off the net but I get fatal errors.
I would like to have a pool of 4 or 5 images that are randomly selected and displayed on every page (home.tpl). TIA
__________________
X-Cart Newbie! - X-Cart Gold v4.1.5 and v4.0.17- Windows 2003 Server, IIS6, PHP 5.2.13 |
|||||||
#2
|
|||||||
|
|||||||
![]() You need to make sure and use {literal} tags around any javascript:
{literal} javascript goes here {/literal}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Wow, after searching and sifting for a while I found this post that makes this look like a toddler could have figured it out.
http://forum.x-cart.com/viewtopic.php?t=6321 Thanks
__________________
X-Cart Newbie! - X-Cart Gold v4.1.5 and v4.0.17- Windows 2003 Server, IIS6, PHP 5.2.13 |
|||||||
#4
|
|||||||
|
|||||||
![]() Even better
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|