X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Need to reference JavaScript file that would normally go in <head>, how to integrate? (https://forum.x-cart.com/showthread.php?t=48073)

racer_x 06-12-2009 12:38 PM

Need to reference JavaScript file that would normally go in <head>, how to integrate?
 
In an html document, I would simply reference the location of the script "scroller.js" in my <head> area. In x-cart, however.......

anyway, it's a custom scrolling panoramic image that will be displayed on the main page. As for inserting the <body> text, I'm fine. Any ideas?

carpeperdiem 06-12-2009 12:46 PM

Re: Need to reference JavaScript file that would normally go in <head>, how to integrate?
 
<head> is located in /skin1/customer/home.tpl

If the js is only needed on the home page, use this if to limit it to "/"

Code:

{if $main eq "catalog" and $current_category.category eq ""}
{literal}
<script language="JavaScript" src="javascript.js" type="text/javascript"></script>{/literal}
{/if}


ok?


All times are GMT -8. The time now is 02:03 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.