View Single Post
  #11  
Old 05-19-2004, 05:20 AM
 
Mod King Mod King is offline
 

Senior Member
  
Join Date: May 2004
Posts: 115
 

Default

If you put javascript in smarty template files you have to escape them with
{literal} {/literal} tags, or else the javascript { } gets intereted as smarty tags.


Your code should work like this

Code:
<body> <p style="margin-top: 0; margin-bottom: 0"> <font color="#0000FF" style="font-size: 9pt"> [img]http://mysite.com/anim_pic.gif[/img]</font></p> <p style="margin-top: 0; margin-bottom: 0"></p> <p style="margin-top: 0; margin-bottom: 0"></p> <p style="margin-top: 0; margin-bottom: 0"> <font face="Verdana" style="font-size: 9pt"><font color="#0000FF">Didn't find what you were looking for?</font> We probably have it and it's just not yet listed in our store. {literal} <script> //Popup Window Script //By JavaScript Kit (http://javascriptkit.com) //JavaScript tutorials and over 400+ free scripts function openpopup(){ var popurl="http://mysite.com/price_quote.htm" winpops=window.open(popurl,"","width=620,height=450,scrollbars") } </script> {/literal} <font color="#FF0000"><u>Click here</u></font> to see if we have it and for a free price quote!</font></p> </body>
__________________
Mod King
Reply With Quote