> Sticking it in the template file would mean putting the
> script block outside the head which I don't really want.
Why does it mean that? I put all that stuff in the template like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script type="text/javascript" src="js/jquery-pack.js"></script>
<script type="text/javascript">
{literal}
$(function() {
$('div.round').corner();
});
{/literal}
</script>
{if $googleMaps}
<script type="text/javascript" src="js/jquery.googlemaps.js"></script>
<script type="text/javascript" src="yada-yada"></script>
{/if}
{if $thickbox}
<link rel="stylesheet" type="text/css" media="projection, screen"
href="css/thickbox.css" />
<script type="text/javascript" src="js/thickbox.js"></script>
{/if}
...
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/