留言板
own javascript
Hi ,
I want to add java script into portal-normal.vm.
Any one can help?
Thanks in advance.
I want to add java script into portal-normal.vm.
Any one can help?
Thanks in advance.
place your custom javascript sources in the folder /docroot/js/custom.js
The velocity variable $javascript_folder is set to look in the /js
folder Not in the /_diffs/js/.
in the portal_normal.vm you include the javascript link to your file like this:
<script type="text/javascript" src="$javascript_folder/custom.js" charset="utf-8"></script>
The velocity variable $javascript_folder is set to look in the /js
folder Not in the /_diffs/js/.
in the portal_normal.vm you include the javascript link to your file like this:
<script type="text/javascript" src="$javascript_folder/custom.js" charset="utf-8"></script>