a little more complex swap

J

JT

Hi..

Im using fp 2003...

I have a frames page with the items in the left pane and I want
to be able to mouseover or click on each item and have the
corosponding image pop up in the other frame...

Do I use a table cell, or layer?

Could someone explain how to do this.. I am new to all this

Thanks in Advance For your Help
 
S

Steve Easton

You set the link target to the frame.

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

Thomas A. Rowe

You can't do this with frames, you need to use tables or CSS, as the mouse over script need to all
be on the same page.

In your IE address bar type?

? JavaScript Image Swapping Scripts

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

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

JT

thanks.. that worked.... only one more small problem...

ive got my image coming up in the target frame... but its way to large and
want to make it smaller so its not so distorted..... ive tried making the
original image smaller, but it continue to fill the
frame....
 
J

Jon Spivey

you can address an image in another frame with
parent.FrameName.document.images['imagename'].src = 'something.gif';

So starting with any swap image script you'd find the line that swaps the
image, something like
document.images['imagename'].src = 'something.gif';
and just add parent.FrameName to the front where FrameName is the name of
the frame containing the image to be swapped. Probably easier to do than
explain :)

Would be best not to use the swap image behavior in FP as it doesn't work in
NN4 - but theres plenty of other scripts out the - as you said do a search.
 
T

Thomas A. Rowe

Jon,

Using:

parent.FrameName.document.images['imagename'].src = 'something.gif';

will only load the image into a blank browser generated page in "FrameName" with the image, the same
as linking directly to an image.

Correct ?

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

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


Jon Spivey said:
you can address an image in another frame with
parent.FrameName.document.images['imagename'].src = 'something.gif';

So starting with any swap image script you'd find the line that swaps the
image, something like
document.images['imagename'].src = 'something.gif';
and just add parent.FrameName to the front where FrameName is the name of
the frame containing the image to be swapped. Probably easier to do than
explain :)

Would be best not to use the swap image behavior in FP as it doesn't work in
NN4 - but theres plenty of other scripts out the - as you said do a search.

--
Cheers,
Jon
Microsoft MVP - FP

Thomas A. Rowe said:
You can't do this with frames, you need to use tables or CSS, as the mouse over script need to all
be on the same page.

In your IE address bar type?

? JavaScript Image Swapping Scripts

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

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
 
Top