Link to home
Start Free TrialLog in
Avatar of cedric80
cedric80Flag for Malaysia

asked on

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(iepngfix.htc) }
 </style>
<![endif]-->
---------------------------- END ----------------------------------------

---------------Need to put this within <BODY> ---------------
<script type="text/javascript">
      
      $(document).ready(
            function()
            {
                  $('#dock').Fisheye(
                        {
                              maxWidth: 50,
                              items: 'a',
                              itemsText: 'span',
                              container: '.dock-container',
                              itemWidth: 40,
                              proximity: 90,
                              halign : 'center'
                        }
                  )
            }
      );

</script>
---------------------------- END ----------------------------------------

Kindly help to teach me how to put {ldelim} {rdelim} into above coding...
Appreciated your help!
ASKER CERTIFIED SOLUTION
Avatar of kumaranmca
kumaranmca

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial