| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
adding a javascript clock in a template | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Hello,
I'm trying to add a javascript clock into the template: /customer/top_menu.tpl This is the code: Code:
But I'm getting an error in the template. What I'm doing wrong?
__________________
Best regards, Niki Buitenrust Hettema X-Cart Gold 4.1.8 (Live & Loaded) Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more... |
|||||||||
#2
|
|||||||
|
|||||||
![]() You need to put {literal} tags around the script:
{literal}insert javascript here {/literal}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Code:
I usually create a template (like time_js.tpl) as above.....then call that template as: {include file="time_js.tpl"} as below Code:
Hope that helps.... Louise
__________________
Louise Studio 57 Designs - X-Cart Customization Providing X-Cart Services since 2004 Hottest Blog Directory - Submit Your Blog for a Free Listing |
|||||||||
|
|||
X-Cart forums © 2001-2020
|