Call javascript in header

Drift

Joined: 2002-08-28
Posts: 2
Posted: Wed, 2002-08-28 08:38

I am trying to intergrate Gallery into my current site. I use a javascript menu bar that I call in HTML as follows:

<SCRIPT language=JavaScript src="newmenu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="mmenu.js" type=text/javascript></SCRIPT>

My question is how would I call this in PHP in the header files?

Cheers
Luke

 
Grinch

Joined: 2002-08-28
Posts: 24
Posted: Wed, 2002-08-28 22:29

Judging by the silence, I'm guessing that there is no easy way to do it. I would like to know myself since I'm having the same issue.

 
Drift

Joined: 2002-08-28
Posts: 2
Posted: Thu, 2002-08-29 07:02

Grinch,

It does actually work. I simply had the paths wrong. I just added it to the xxxx.header file under includeHtmlWrap part, like below;

<?
includeHtmlWrap("wrapper.header");
?>
<SCRIPT language=JavaScript src="http://www.xxx.com.au/newmenu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="http://www.xxx.com.au/mmenu.js" type=text/javascript></SCRIPT>

OR you could find the html section in albums.php, view_album.php, view_photo.php