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)
-   -   How do I tuck the script from check_options.tpl (https://forum.x-cart.com/showthread.php?t=21762)

fhiremark 05-13-2006 09:41 PM

How do I tuck the script from check_options.tpl
 
Hello,

Is there anyway I can tuck away the javascript from check_options.tpl into a .js file? I'm not familiar with javascript so I'm not sure on what the proper way to tuck away the script is.

Right now there's about 300 lines of javascript code that shows up on the source, I'd like for all this to be in 1 line, something like: <SCRIPT SRC="blah/blah/blah.js"></SCRIPT>

I don't know Javascript so I'm not sure on the right syntax to use, somebody please help.

balinor 05-14-2006 03:25 AM

Create a new template, put the JS in the template and call the template from home.tpl like this:

{ include file="yourtemplate.tpl"}


All times are GMT -8. The time now is 07:37 AM.

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