| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Adding Javascript to the frontpage | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Adding Javascript to the frontpage
So I found this image slideshow and it works well with what my client wants.
http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm I've got it running in a stand alone HTML file, but when I started adding it to the welcome.tpl things went wrong. The Category.tpl displays and so does my Facebook Like button, but the slide show is a no show Anyway here's the basis of the code in the HTML file. This portion is supposed to go above the </head> which I placed in my service_head.tpl file. Code:
This is the portion of the HTML that displays the slideshow and the other things I want on the welcome page. Code:
I know I should be using {literal} in a few places, I'm just not sure. And it's late, I'm tired Thanks, Mike
__________________
X-Cart 4.3 Joomla Among other things |
|||||||
#2
|
|||||||
|
|||||||
Re: Adding Javascript to the frontpage
The googleapis should already be included in meta.tpl or meta_css.tpl. Including multiple jQuery versions will produce silent errors.
Fadeslideshow should be in root skin and referenced in meta.tpl or meta_js.tpl There </script> after the comments is unneeded, and so is the opening script afterwards. Move the opening script up to above the comments and throw literals in it. Code:
|
|||||||
#3
|
|||||||
|
|||||||
Re: Adding Javascript to the frontpage
OK wait.
I put this in the skin1\customer\meta.tpl Code:
Is there a way to turn "/demos/xcart/skin1" into {$SkinDir} that's in the javascript? Code:
__________________
X-Cart 4.3 Joomla Among other things |
|||||||
#4
|
|||||||
|
|||||||
Re: Adding Javascript to the frontpage
If /demos/xcart/skin1 is {$SkinDir} and you need to use that in the JS, you can do this:
Code:
|
|||||||
#5
|
|||||||
|
|||||||
Re: Adding Javascript to the frontpage
Great thanks, working perfect!
__________________
X-Cart 4.3 Joomla Among other things |
|||||||
|
|||
X-Cart forums © 2001-2020
|