JavaScript Problems
Posted: Mon 22. Oct 2007, 03:19
Hello,
I'm trying to use this JavaScript:
But it needs to go in between the </head> and <body>.
I've tried using:
But that doesn't work. I've tried using it in the template area but that doesn't work either. And I've also been using body onload="autofitIframe('Entrycontainer') in the JS onload in the templates area.
Does anyone know how I can add this code in between the </head> and <body>?
Any help would be much appreciated!
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!