Double Image swap

D

Digital_Boy

Is there some trick to getting a double image swap and restore working using
the behaviors panel in FP2003? It seems that the first image swap I assign
never restores on mouseout. I've tried various ways including assigning the
swap image, then assigning a restore, then repeating for the second image.

I've tried assigning both images and then both restores. I've tried using
the restore on mouseout option in the swap image dialogue box.

Any help?

Thanks,
DB
 
T

Trevor L.

Digital_Boy said:
Is there some trick to getting a double image swap and restore
working using the behaviors panel in FP2003? It seems that the first
image swap I assign never restores on mouseout. I've tried various
ways including assigning the swap image, then assigning a restore,
then repeating for the second image.

I've tried assigning both images and then both restores. I've tried
using the restore on mouseout option in the swap image dialogue box.

Any help?

Thanks,
DB

Can you explain what you want to do and if possible post the code.

It is probably just as simple matter of adding onmouseout=".." to the code
at the appropriate place. Sure you may need to do a bit of typing in Code
view, but not much :))
 
D

Digital_Boy

What I'm trying to do is have two small image swaps occur when I rollover one
text link. I'm not swapping an image that I'm using AS the link. The images
I'm swapping are elsewhere on the page. So, I want to swap img1 with img3
and img2 with img4, and restore both when I mouseout (Img names just
examples).

The code produced by fp behaviors is the following:

<a href="staff.htm"
onmouseover="FP_swapImg(1,1,/*id*/'img1',/*url*/'images/sitelinksover.jpg');
FP_swapImg(1,1,/*id*/'img2',/*url*/'images/TopImageSlice/staff.jpg')"
onmouseout="FP_swapImgRestore(); FP_swapImgRestore()">

thanks for your reply and any help you can give me. I need to learn to
write a little javascript one of these days, instead of being a cut and
paster heh.

DB
 
R

Ronx

Change

<a href="staff.htm"
onmouseover="FP_swapImg(1,1,/*id*/'img1',/*url*/'images/sitelinksover.jpg');
FP_swapImg(1,1,/*id*/'img2',/*url*/'images/TopImageSlice/staff.jpg')"
onmouseout="FP_swapImgRestore(); FP_swapImgRestore()">

to

<a href="staff.htm"
onmouseover="FP_swapImg(1,1,/*id*/'img1',/*url*/'images/sitelinksover.jpg');
FP_swapImg(1,1,/*id*/'img2',/*url*/'images/TopImageSlice/staff.jpg')"
onmouseout="="FP_swapImg(1,1,/*id*/'img1',/*url*/'images/sitelinksover_orig.jpg');
FP_swapImg(1,1,/*id*/'img2',/*url*/'images/TopImageSlice/staff_orig.jpg')">

where staff_orig.jpg and sitelinksover_orig.jpg are the original
images.

swapImageRestore() will only restore the last image that was swapped.
 
D

Digital_Boy

Thanks Ronx!

You accidentally typed: onmouseout="=" instead of onmouseout="
but the rest of it worked like a charm. I knew that double onmouseout thing
wasn't going to work, but I swear i tried adding image names before I posted
here.

Oh well, thanks again.
DB
 
T

Trevor L.

Digital_Boy,

I'm glad to see that Ron helped you. Once it was clear what you wanted, the
rest fell into place, especially for experts such as Ron.
 

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