| re: Including script in HTML
Yes, the function is in menu.js, and menu.js lies in the root folder. Are
there any other ways to include the script in the head of the page? Any
other ways to call a function in the body tag?
I would be very glad if someone posted an example!
Dag Erik
" JCO" <J.Oliviero@verizon.net> wrote in message
news:fIYXb.15088$5W3.13541@nwrddc02.gnilink.net...[color=blue]
> Can we assume that you have the function "printMenu()" in menu.js?
> If so, is menu.js at the root or in a folder?
> If in a folder, you need to add the folder path, i.e....
> "my_scripts/menu.js"
>
>
>
> "Berry B" <dagerik@stud.ntnu.no> wrote in message
> news:40300fcd$1@news.broadpark.no...[color=green]
> > Hi!
> > I'm extremely new to JavaScript programming, so bear with me pleace.
> > I'm having trouble including a script into a page from an external .js[/color]
> file.[color=green]
> > I've put the following in the head;
> >
> > <script language="JavaScript" src="menu.js"></script>
> >
> > And in the body i've put the following:
> >
> > <BODY bgcolor="#000000" marginwirgin: 0" onLoad="printMenu()"
> > onResize=dth="0" marginheight="0" style="ma"if (isNS4)[/color][/color]
nsResizeHandler()">[color=blue][color=green]
> >
> > The problem is that the function printMenu doesn't run, I just keep[/color]
> getting[color=green]
> > runtime errors in IE, and the menu buttons will not show. Any[/color][/color]
suggestions?[color=blue][color=green]
> >
> > Tnx!
> >
> >[/color]
>
>[/color] |