Hi,
I need to use some external java script, I have created a /Scripts folder in my stores directory.
Created my external script and placed it in area outlined below.
Named it newscipt.js then uploaded to my newly created /scripts folder.
Then in my stores home.tpl I placed the following script to call the external java script like so:
{literal}<script language="Javascript"src="/scripts/newscript.js"type="text/javascript"></script>{/literal}
I know that any Java Scripts added to a template should be enclosed in {literal} and {/literal} but not sure where exactly to place it.
I have tried:
{literal}<script language="Javascript"src="/scripts/newscript.js"type="text/javascript"></script>
{/literal}
And even added it to the external script to no avail in both cases, like so.
{literal}<!--document.write("<script language="PlacedJavaScriptHere ")
//-->{/literal}
And tried this too:
<!--document.write({literal}"<script language="PlacedJavaScriptHere "{/literal})
//-->
Any help would be appreciated on this from you code experts.
Thanks in advance
