Posted by micha on 05/12/05 15:16
"Angelos" <angelos@redcatmedia.net> wrote in
news:d5vgu6$3lj$1@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com:
> Hello there,
> I have the folowing problem:
> I need to use the <body onload="loadMenu()";"initDocument()"> but the
> first javascript "loadMenu()" is in menu.php and initDucument() is in
> content.php.
>
> Now Non of these php files has a body tag in order to add the onload
> Javascritp because I use a header.php and a footer.php which is
> included in each php document.
>
> I succesfully use the <body onload="loadMenu()"> in my header.php but
> if I add the initDocument(). It won't work....
>
> Does any of you ever did something similar and is able to give me a
> hint ?
>
>
>
>
what exactly doesn't work?
let's suppose this is not a javascript problem (i.e. both function work
ok)
as far as i can understand header.php actually outputs the <body> tag.
why not
print '<body onload="loadMenu()";"initDocument()">';
there?
micha
Navigation:
[Reply to this message]
|