/    Sign up×
Community /Pin to ProfileBookmark

Open image in same table

Hi Guys,

New to the board, thanks for having me.

I have a table with two colums, with the left hand column containing large image and the right hand column around 6 small images, at the moment I’m using the onclick method to popup a new window with no resize or scrolling properties etc… however,

Ideally I would love to have the user click the small image on the right and have the larger same image open in the left hand column…

Can anyone help please?

? David.

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@KorMay 25.2005 — Hore are named you pictures' files?

ex:

smalls = pic1_small.jpg, pic2_small.jpg...

bigs = pic1_bigl.jpg,pic2_big.jpg...

?

Or how? And which is the relative url of those pictures

ex: images/pic1_small.jpg or pics/images/pic1_small.jpg ... or how ?
Copy linkTweet thisAlerts:
@CharlesMay 25.2005 — <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Script-Type" content="text/javascript">
<meta name="Content-Style-Type" content="text/css">
<title>Example</title>
</head>
<body>
<iframe name="bettie" style="border:0; float:left; height:400px; width:250px"></iframe>
<ul>
<li><a href="http://www.bettiepage.com/images/photos/bikini/bikini1.jpg" target="bettie"><img alt="[bettie page]" src="http://www.bettiepage.com/images/photos/bikini/bikini1_a.jpg" ></a></li>
<li><a href="http://www.bettiepage.com/images/photos/bikini/bikini2.jpg" target="bettie"><img alt="[bettie page]" src="http://www.bettiepage.com/images/photos/bikini/bikini2_a.jpg" ></a></li>
<li><a href="http://www.bettiepage.com/images/photos/bikini/bikini3.jpg" target="bettie"><img alt="[bettie page]" src="http://www.bettiepage.com/images/photos/bikini/bikini3_a.jpg" ></a></li>
</ul>
</body>
</html>
Copy linkTweet thisAlerts:
@david_ukauthorMay 25.2005 — Yes the http is

..images/large_1.jpg and

..images/small_1.jpg

and yes the images are named as such.
Copy linkTweet thisAlerts:
@KorMay 25.2005 — well...first time I was thinking of a javascript solution, but Charles gave you a simplier pure HTML solution. It has the advantage that it is to to be seen even by the users which have javascript disabled (except that, upon your needs, you may further make your iframe without scrollbars, using CSS attributes)

If you still want a javascript solution, I will give it to you, but first try Charles'. It's a good one.
Copy linkTweet thisAlerts:
@david_ukauthorMay 26.2005 — Hi, I agree, I was actually looking for a solution in Javascript but the html will work fine.

Can you let me know how to keep from showing scrollbars etc...

Thanks,

David.
×

Success!

Help @david_uk 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...