/    Sign up×
Community /Pin to ProfileBookmark

two-step image swap

Hi –

I’m building a portfolio site for an architect. On one page, there’s a row of thumbnails (call them image 1), which when clicked, replace an existing graphic (image 2) with a larger version of the thumbnail.

So far, so good.

What I then need to happen is for that larger image, when clicked, to pop up a new window with a yet larger version of itself.

What I don’t know how to do is give the <a href> tag surrounding image 2 the value it needs to pop up the correct html page; that is, the page containing the correct image.

ANy advice would be most appreciated.

Thanks.

gabe friedman

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@DariaOct 14.2003 — Make image 2 an html page, rather then an image. (say, image2.html

Put in a code to open a new window (image3) once clicked on the image2.

you cannot do it if you open image 2 as a plain image in a separate window.

Can you post the code or link to the page, if any?
Copy linkTweet thisAlerts:
@gfriedauthorOct 14.2003 — I see what you're getting at, but the first image swap has to be an image swap rather than a page-load.

You can see the page at http://www.cinukai.com/architecture/soho.html. Click on the thumbnails to swap the larger image. What's missing is the ability to click on the larger image to get the pop-up window.

thanks for your reply.
Copy linkTweet thisAlerts:
@DariaOct 14.2003 — Nice arch.design! Loved the bath!

Anyway...

I know that you don't want preload, but the only thing I can suggest is to make the larger image area into an [COLOR=red]iframe[/COLOR] and that way you can put a script in the html page for those images to be enlarged as window.open in a separate window.

Maybe there is a php code or something to that extent that could be done, but I am not good (if not to say - totally bad) at those.
×

Success!

Help @gfried spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...