How to add custom javascript

I have find some useful javascript but i can’t understand where to add those codes on cs-cart templates.



Here is the javascript which i want to place on index.php file which is front page.



[url]http://www.javascriptkit.com/script/script2/dropdownpanel.shtml[/url]



Please help

You could add it to index.tpl, meta.tpl or scripts/form_scripts.tpl.


[quote]

Here is the javascript which i want to place on index.php file which is front page.

[/quote]

If your going to use the javascript on the front page only use


{if $current_url == "$index_script"}

YOUR CODE HERE!!!

{/if}

I can’t understand the way on how to place the code to the actual line specially in head and body part of the script.



I want to make this simple script for my website but not understand where is the correct. Can you please give the correct way to do this .



[url]http://www.javascriptkit.com/script/script2/postit.shtml[/url]