Writing the javascript code directly in the template did not work for me, even using the
in the header.
After much searching I found the solution in Leonard Murphy’ Book “Building Websites with Expression Engine 2”, I don’t know if it is the best way, but the jquery slider now works perfectly on my website (and is really easy).
For the records, this is what I did:
Upload the folder with the javascript files to the root of my website over FTP.
Pointing to the scripts files using the {site_url} variable on the path, here the code in the header of the template:
<!—JAVA Files Starts—>
type=“text/javascript” src=“http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js”><!—JQUERY—>
< script type=“text/javascript” src=“http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js”>< /script ><!—JQUERY—>
< script type=“text/javascript” src=”{site_url}/scripts/modernizr-2.0.6.js”}”>< /script >
< script type=“text/javascript” src=”{site_url}/scripts/jquery.quicksand.js”}”>< /script >
< script type=“text/javascript” src=”{site_url}/scripts/jquery.prettyPhoto.js”}”>< /script >
< script type=“text/javascript” src=”{site_url}/scripts/jquery.cycle.all.js”}”>< /script >
< script type=“text/javascript” src=”{site_url}/scripts/jquery.roundabout.min.js”}”>< /script >
< script type=“text/javascript” src=”{site_url}/scripts/jquery.easing.1.3.js”}”>< /script >
< script type=“text/javascript” src=”{site_url}/scripts/jquery.twitter.js”}”>< /script >
< script type=“text/javascript” src=”{site_url}/scripts/jquery.quovolver.js”}”>< /script >
< script type=“text/javascript” src=”{site_url}/scripts/hoverIntent.js”}”>< /script >
< script type=“text/javascript” src=”{site_url}/scripts/supersubs.js”}”>< /script >
< script type=“text/javascript” src=”{site_url}/scripts/superfish.js”}”>< /script >
< script type=“text/javascript” src=”{site_url}/scripts/custom.js”}”>< /script >
That’s it…! 😊