vbwiz
Dec 4th 2006, 4:17 pm
How do I do this without the function in the <head> section as showed on this page? http://www.plus2net.com/javascript_tutorial/textarea-onclick.php
I can't use what that tutorial has because I'm using smarty templates and in the head section of my header there's the following.
<!--!!!!!!!!!!!!!!!!!!!!!!!! LIBRARY !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!-->
<script src="{$baseurl}/ajax/cpaint2.inc.js" type="text/javascript"></script>
<script src="{$baseurl}/js/myjavascriptfx.js" type="text/javascript"></script>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<!--!!!!!!!!!!!!!!!!!!!!!!!!! Processing SCRIPT !!!!!!!!!!!!!!!!!!!-->
<script language=JavaScript src={$baseurl}/js/indexonly.js></script>
<script language=JavaScript src={$baseurl}/js/myjavascriptajax.js></script>
<script language=JavaScript src={$baseurl}/js/myjavascript.js></script>
<link href="{$baseurl}/css/style.css" rel="stylesheet" type="text/css">
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
Where do I put the function?
I can't use what that tutorial has because I'm using smarty templates and in the head section of my header there's the following.
<!--!!!!!!!!!!!!!!!!!!!!!!!! LIBRARY !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!-->
<script src="{$baseurl}/ajax/cpaint2.inc.js" type="text/javascript"></script>
<script src="{$baseurl}/js/myjavascriptfx.js" type="text/javascript"></script>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<!--!!!!!!!!!!!!!!!!!!!!!!!!! Processing SCRIPT !!!!!!!!!!!!!!!!!!!-->
<script language=JavaScript src={$baseurl}/js/indexonly.js></script>
<script language=JavaScript src={$baseurl}/js/myjavascriptajax.js></script>
<script language=JavaScript src={$baseurl}/js/myjavascript.js></script>
<link href="{$baseurl}/css/style.css" rel="stylesheet" type="text/css">
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
Where do I put the function?