Javascript Menu won't work as an include file

D

Don Pearsall

I want to have a Javascript popup menu instead of the "navigation" type of
menu on all pages. When I try to insert the menu in a cell using the
included content bot, it does not work at all. Not even visible. Otherwise
it works fine.

Any ideads on how to fix?

Don Pearsall
 
M

Murray

Would have to see your code to hazard a guess.

I would never use an all javascript menu on any webpage, however.
 
S

Steve Easton

The script in an include *must* be moved from the head section to the body section of the include
page.
An include only "includes" the content between the <body> and </body> tags.
Therefore your script is being left behind when the include process functions.

hth

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
M

Murray

Better, the script must already be present in the target page's head, rather
than moving it into the body content area (EW!).
 
T

Thomas A. Rowe

But then you have to open every page that will be using the include and insert the script into the
head, at least if you place it in the body of the include page, it will be available to any page
using the specific include.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
M

Murray

I usually do an external js file for all pages, and put it in there. This
way, you take a bit of an extra hit on the first page, but from then on, the
file is pulled from the cache.

But, you're right.
 
T

Thomas A. Rowe

You still have to open all pages that will be using the include and link to the external .js file
correct?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Top