Image Swap not working

D

Denise

FP03 - I have a menu that contains several images as menu items. The menu is
used as an 'included page' on each page of the site. Each menu item is an
image with the swap image behavior applied. The menu displayed correctly when
previewed, until I added hyperlinks to each menu item. Now the swapped image
doesn't display.

Any idea why this is happening? Is it a bug? Or am I expecting too much?

By the way - this is not a consistent error - I have had intermittent
success with this on various sites I've developed, even though I use the same
procedure on each site. I couldn't find any differences in code, either. The
only difference would be the hosting server..... does that make sense?
 
S

Steve Easton

Where did you add the hyperlinks??

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

Denise

To the images. Here's an example of one of the menu items.

<p>
<a href="../odb.htm">
<img id="btn2" border="0" src="../images/btn2a.jpg" width="161"
height="19" onmouseout="FP_swapImgRestore()"
onmouseover="FP_swapImg(1,1,/*id*/'btn2',/*url*/'../images/btn2b.jpg')"></a></p>
 
M

Murray

You added the swap to the IMAGE not to the link. Your code should be like
this -

<p>
<a href="../odb.htm" onmouseout="FP_swapImgRestore()"
onmouseover="FP_swapImg(1,1,/*id*/'btn2',/*url*/'../images/btn2b.jpg')">
<img id="btn2" border="0" src="../images/btn2a.jpg" width="161"
height="19"></a></p>
 
D

Denise

That doesn't make a difference. The swapped image still doesn't show up.

Incidentally, if I look at the page in Preview mode, the swapped image DOES
show up - but when previewed in a browser (MSIE 6.0 or Navigator 7.1) or
published, the swapped image doesn't show.
 
T

Thomas A. Rowe

If you are using FP Interactive Buttons they are not supported in Shared Borders or Include Pages,
because the JavaScript function is written to the head section of the page you insert them on, and
when FP includes the content from another page, only the content that is between the
<body>..content..</body> tags is included.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
M

Murray

It does make a difference, and it's the right way to make such a link, so
please leave it like that. There must be some other reason you are not
seeing the swapped image - what is a link to the page, and which link is the
problem?
 
R

Ronx

Is the included page in a folder and the pages in the web root? If so, the
rollovers will fail.
When you include the page FrontPage does not update the path to the images
in the <img> tag, hence the failure.
See www.rxs-enterprises.org/fp/b/buttons/ for details and work-arounds.
 
D

Denise

I'm not using "interactive buttons" - I went to Format, Behaviors and used
the Swap Image there.

But... it seems that you are correct. I moved the menu out of an included
file and hard coded it into the page and now the swapped images appear.

Doesn't really explain why it works on some sites and not others, but
whatever - I can live with this answer.

Thanks for the help!
 
Top