Add javascript into .TPL file

Hi Guru,

     I have problem to add javascript into a .TPL file.

     I did search through Net, and found that we can use {ldelim} {rdelim} to let TPL file to understand javascipt.

    I able to add below two lines but not the rest...@@
   <script type="text/javascript" src="js/jquery.js"></script>
   <script type="text/javascript" src="js/interface.js"></script>

Below are the codes that I trying to put in but failed.
---------------Need to put this within <HEAD> ---------------
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/interface.js"></script>
<link href="style.css" rel="stylesheet" type="text/css" />
<!--[if lt IE 7]>
 <style type="text/css">
 div, img { behavior: url( }
---------------------------- END ----------------------------------------

---------------Need to put this within <BODY> ---------------
<script type="text/javascript">
                              maxWidth: 50,
                              items: 'a',
                              itemsText: 'span',
                              container: '.dock-container',
                              itemWidth: 40,
                              proximity: 90,
                              halign : 'center'

---------------------------- END ----------------------------------------

Kindly help to teach me how to put {ldelim} {rdelim} into above coding...
Appreciated your help!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hi cedric80,

I think you using smarty...

Refer the below example code. It helpful for you...
<script type="text/javascript">
  function isblank(field) {
    if (field.value == '')
      { return false; }
      return true;
// -->

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.