image swap and includes

H

Helpful person

I have defined an image swap behaviour (mouse over) on an include page.
The image swap works fine when the include page is loaded into my
browser. However, it does not work for pages that "include" the page
with the image swap.

Is this a general problem with includes or is there a way round this
problem?
 
T

Thomas A. Rowe

The JavaScript code must be moved from the head section of the page to after the opening <body> tag
for the script to work in all pages using the include.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
H

Helpful person

Thomas said:
The JavaScript code must be moved from the head section of the page to after the opening <body> tag
for the script to work in all pages using the include.
Thanks a very much, I've already spent too much time investigation this
problem. However, every time I change the included page I'm going to
have to edit each of the other pages. An easier solution for me is to
keep the original include page and cut and paste from it to the other
pages.
 
S

Steve Easton

No you won't have to edit the other pages.
If you do it as Thomas suggested, each time you change the include the other pages will be
automatically updated.

Move the script in the include from the head section to the body section.
Only content between the <body></body> tags in the include is "included."
Everything else is ignored.

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

Helpful person

Steve said:
No you won't have to edit the other pages.
If you do it as Thomas suggested, each time you change the include the other pages will be
automatically updated.

Move the script in the include from the head section to the body section.
Only content between the <body></body> tags in the include is "included."
Everything else is ignored.

--

If I change the swap image or add other images with swaps, won't I need
to re edit the pages?
 
H

Helpful person

Thanks for all the help. In each of my pages I deleted the include
content and then re included it. This solved my problem.
 
S

Steve Easton

If the swaps are in the include, if you edit the include and then save it FrontPage
automatically updates all of the pages that use the include.

That's the purpose of / main reason for using an include page.

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

Helpful person

Steve said:
If the swaps are in the include, if you edit the include and then save it FrontPage
automatically updates all of the pages that use the include.

That's the purpose of / main reason for using an include page.

That is true, except when it doesn't work!

ww.richardfisher.com
 
H

Helpful person

Steve said:
If the swaps are in the include, if you edit the include and then save it FrontPage
automatically updates all of the pages that use the include.

That's the purpose of / main reason for using an include page.

--
Yes, except with behaviours it doesn't always set up correctly.

www.richardfisher.com
 

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