Shared Border - JavaScript

J

Joyce

I had someone create a flyout menu for my left navigation border. I inserted
the code. When I preview the left.htm border file, the javascript flyout menu
displays correctly but it doesn't show up at all on any other pages - totally
blank. Can someone tell me what to do?
 
R

Ronx

The javascript must be placed in all your pages - anything in the <head>
of a shared border is not copied into pages using the shared border.

FYI, what you see in your pages now is what any user with JavaScript
disabled will see, even when you get the menu working correctly - any
menu that relies on Javascript to be seen should be avoided, unless
there is a non-javascript alternative provided.
 
J

Jeff

I have a similar issue. I wrote a javascript routine to randomly display
images into a designated positiong. I wnat to use it in a FrontPage shared
border. So I guess I have 2 questions.

1) Is there any way to include the javascript call into the html of the
shared border?
2) Is there any wau to include the javascript routine into a common <head>?
If not, is there any way to put it into a default <head> for all pages?

Thanks,

Jeff

*************************************
 
T

Trevor Lawrence

Jeff said:
I have a similar issue. I wrote a javascript routine to randomly display
images into a designated positiong. I wnat to use it in a FrontPage shared
border. So I guess I have 2 questions.

1) Is there any way to include the javascript call into the html of the
shared border?
2) Is there any wau to include the javascript routine into a common
<head>?
If not, is there any way to put it into a default <head> for all pages?

Thanks,

Jeff

A quick reply.

You do not have to use shared borders. You can write a JS routine that will
add images or whatever into any page. All you need to do is use an element
with the same id on every page, then call the same JS to write the stuff
into that element. My site below does similar. The heading is an FP include
and the content is written by one JS function (or set of functions
actually.)
 
R

Ronx

Place the Javascript immediately after the body tag in the shared border
file. This will find its way into every page using the shared border.

The files for shared borders are located in the _borders folder named
top.htm, bottom.htm, left.htm and right.htm. Only those borders being
used will be there.

If you can't see the _borders folder, then Tools->Site Settings (or web
settings) - Advanced tag. Tick the box labelled "Show hidden files and
folders". Click OK and allow the site to refresh.

--
Ron Symonds - Microsoft MVP (Expression)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp
 
J

Jeff

That did it. Thanks!!!

Ronx said:
Place the Javascript immediately after the body tag in the shared border
file. This will find its way into every page using the shared border.

The files for shared borders are located in the _borders folder named
top.htm, bottom.htm, left.htm and right.htm. Only those borders being
used will be there.

If you can't see the _borders folder, then Tools->Site Settings (or web
settings) - Advanced tag. Tick the box labelled "Show hidden files and
folders". Click OK and allow the site to refresh.

--
Ron Symonds - Microsoft MVP (Expression)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp
 

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

Top