| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
FREE Banner Rotator with Links | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
Re: FREE Banner Rotator with Links
For some reason the code will not work if you have any other Java script on the same page as they seem to conflict with each other.
Secondly, what I did was to create a language variable and then place the code in the variable and then just call the variable where you want the banner rotator to display Create a variable lbl_banner_rotator Place the below code where you want the banner rotator to display {$lng.lbl_banner_rotator} Also ensure that your image path ways are specified correctly |
|||||||||
|
#12
|
|||||||
|
|||||||
Re: FREE Banner Rotator with Links
I created a language variable and added the {$lng.lbl_banner_rotator} to my welcome.tpl. it shows on my page source, but does not work. may be because i have other JS on the same page...
__________________
Bella Beachwear http://www.bellabeachwear.com sales@bellabeachwear.com Using X-Cart Gold version 4.19.0 |
|||||||
#13
|
|||||||||
|
|||||||||
Re: FREE Banner Rotator with Links
Try to put {$lng.lbl_banner_rotator} on another page just to check if it works, even if you have to create a temp static page just for testing purposes. If it does then it confirms that you had conflict with other JS. If it still not working then your issue lies elsewhere
|
|||||||||
|
#14
|
|||||||
|
|||||||
Re: FREE Banner Rotator with Links
I tried into another static page and still does not work. I added a text label before just to see if it shows on the static page and it does show, but it does not show the images after the text...
__________________
Bella Beachwear http://www.bellabeachwear.com sales@bellabeachwear.com Using X-Cart Gold version 4.19.0 |
|||||||
#15
|
|||||||||
|
|||||||||
Re: FREE Banner Rotator with Links
Try to put the full code not {$lng.lbl_banner_rotator} in a static page and if it still does not work then it is definitely a conflict with JS
|
|||||||||
#16
|
|||||||
|
|||||||
Re: FREE Banner Rotator with Links
Quote:
. Now it works. BTW. MUST Install in the welcome.tpl or any other tpl file. not in the language section
__________________
Bella Beachwear http://www.bellabeachwear.com sales@bellabeachwear.com Using X-Cart Gold version 4.19.0 |
|||||||
#17
|
|||||||||
|
|||||||||
Re: FREE Banner Rotator with Links
Well spotted! I have tried to edit my post but the WYSIWYG editor in this forum displays it without the space. Not sure I understand why this space appears.
A forum moderator should maybe look into this? |
|||||||||
#18
|
|||||||
|
|||||||
Re: FREE Banner Rotator with Links
Got this working using your language variable idea, and removing the space in "length"
Thanks for this! |
|||||||
#19
|
|||||||||
|
|||||||||
Re: FREE Banner Rotator with Links
Glad you are sorted! Like your site by the way, looking good!
BellaBeachwear spotted the space in "length", although I did try and edit my post to fix it but the WYSIWYG in this forum is not having it for some reason? Regarding language variables, I always try and test most code in them first because it makes it so much easier to modify things. You will notice that they are handy for allot of things e.g. if you look on my site you will see on my left and right hand side columns I have a string of banners. These banners are placed in 2 language variables, one named lbl_left_column and lbl_right_column. This makes life so much easier if you wish to change your banners because instead of trying to remember which tpl to edit you just keep record of all your language variables and BOB's YOUR UNCLE! |
|||||||||
#20
|
|||||||
|
|||||||
Re: FREE Banner Rotator with Links
Dan,
I tried the code (fixing the space in length issue) and placed it on a static page to get it working before I add it to my welcom page, but I consisatntly get a syntax error in the same spot. In the code I have (as per youtr post): if (preloadimages=="yes"){But in the source code when the page loads all it has is: if (preloadimages=="yes")}Which the creates a syntax error on floating "}". I have tried retyping these sections add, subtracting, etc. But still nothing is showing up in the source code. Have you seen anything like this before or have any ideas? Thanks Chris
__________________
Version 4.1.9 |
|||||||
|
|||
X-Cart forums © 2001-2020
|