If you are using FrontPage 2003 swap image behaviour then Yes, you can use
the Swap Image behaviour in include pages, with limitations. The
JavaScript in the <head> section will be correctly generated in all pages
using the include, but the image paths used in the onmouseover and
onmouseout events may not be correct. See
www.rxs-enterprises.com/fp/b/buttons/ which demonstrates some of the
problems involved using Interactive Buttons - some of these problems are
also relevant to the Swap Image behaviour.
In testing, I could not replicate your "object expected" problem, and all
image paths were correctly written by FP (which does not always happen with
Interactive Buttons).
--
Ron
Reply only to group - emails will be deleted unread.
"Steve Graham" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have a fairly simple include file that I use to display a standard
> menu on each page of my website. The include file just has a one row
> table with a different graphic in each cell, each cell is a menu
> option and hyperling to a different page.
>
> I have associated a swap image behavior to each graphic so that the
> image changes when the user Mouses Over it.
>
> I include the page in my main web page and it works fine when I
> preview it in Frontpage, but, when I upload it to my Frontpage enabled
> web server, as soon as I mouse over the graphic I get a Runtime Error,
> Error: Object Expected.
>
> What I think is happening is that the code to handle the image swaps
> is being generated in the file I am including. When I include it in my
> main page, the code is being included half way down the page in
> amongst all of the standard HTML formatting tags so when I mouse over
> the graphic and it looks for the swap image function it can't find it
> in the right place at the top of the document and hence the Error:
> Object Expected message.
>
> Am I right? More importantly, can I use behaviors in an include file
> and if so how?
>
> Thanks
>
> Steve