cedric80
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"></scrip t>
<script type="text/javascript" src="js/interface.js"></sc ript>
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"></scrip t>
<script type="text/javascript" src="js/interface.js"></sc ript>
<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!
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"></scrip
<script type="text/javascript" src="js/interface.js"></sc
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"></scrip
<script type="text/javascript" src="js/interface.js"></sc
<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]-->
--------------------------
---------------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>
--------------------------
Kindly help to teach me how to put {ldelim} {rdelim} into above coding...
Appreciated your help!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.