I'm trying to use this JavaScript:
Code: Select all
</head>
<script type="text/javascript">
function autofitIframe(id){ // v.1.0
//copyright 2004 Eddie Traversa http://www.dhtmlnirvana.com/
if (!window.opera && !document.mimeType && document.all && document.getElementById){
parent.document.getElementById(id).style.height=this.document.body.offsetHeight+"px";
}
else if(document.getElementById) {
parent.document.getElementById(id).style.height=this.document.body.scrollHeight+"px"
}
}
</script>
<body onload="autofitIframe('Entrycontainer')">I've tried using:
Code: Select all
$content['page_start'] .= ' <script src="'.TEMPLATE_PATH.'inc_js/cwf.js" type="text/javascript"></script>'.LF;Does anyone know how I can add this code in between the </head> and <body>?
Any help would be much appreciated!