S
Steve Graham
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
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