Javascript Menu won't work as an include file

  • Thread starter Thread starter Don Pearsall
  • Start date Start date
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
 
Would have to see your code to hazard a guess.

I would never use an all javascript menu on any webpage, however.
 
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
 
Better, the script must already be present in the target page's head, rather
than moving it into the body content area (EW!).
 
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.
==============================================
 
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.
 
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.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top