Hi,
I'm trying to make a slide show, with two frames: on the left frame small
thumbnails, and on the right frame the big sized image. Of course when the
user clicks on a thumbnail in the left frame, this image should be shown in
the right frame.
As I have a large number of pictures I don't want to have a separate page
for each picture, and use javascript instead.
I would like to use this in the left frame (see full code below):
parent.right_fr ame.big_image.s rc=N.jpg
My question:
I wonder if this is widely supported.
TIA.
******
The code: three pages: the frameset, the left frame and the right frame.
The frameset:
<html>
<head><title>.. .</title></head>
<frameset cols="25%,75%">
<frame src="thumbs.htm " name="left_fram e">
<frame src="diapo.htm" name="right_fra me">
</frameset>
</html>
The left frame (thumbs.htm):
<html><head>
<script language="javas cript">
function change_img(N){ parent.right_fr ame.big_image.s rc=N + ".jpg"; }
</script>
</head>
<body>
<a href="javascrip t:change_img(1) ;"><img src="1s.jpg"></a>
<br>
<a href="javascrip t:change_img(2) ;"><img src="2s.jpg"></a>
....
</body>
</html>
The right frame (diapo.htm):
<html><head></head>
<body>
<img id="big_image" src="1.jpg">
</body>
</html>
--
Rob
I'm trying to make a slide show, with two frames: on the left frame small
thumbnails, and on the right frame the big sized image. Of course when the
user clicks on a thumbnail in the left frame, this image should be shown in
the right frame.
As I have a large number of pictures I don't want to have a separate page
for each picture, and use javascript instead.
I would like to use this in the left frame (see full code below):
parent.right_fr ame.big_image.s rc=N.jpg
My question:
I wonder if this is widely supported.
TIA.
******
The code: three pages: the frameset, the left frame and the right frame.
The frameset:
<html>
<head><title>.. .</title></head>
<frameset cols="25%,75%">
<frame src="thumbs.htm " name="left_fram e">
<frame src="diapo.htm" name="right_fra me">
</frameset>
</html>
The left frame (thumbs.htm):
<html><head>
<script language="javas cript">
function change_img(N){ parent.right_fr ame.big_image.s rc=N + ".jpg"; }
</script>
</head>
<body>
<a href="javascrip t:change_img(1) ;"><img src="1s.jpg"></a>
<br>
<a href="javascrip t:change_img(2) ;"><img src="2s.jpg"></a>
....
</body>
</html>
The right frame (diapo.htm):
<html><head></head>
<body>
<img id="big_image" src="1.jpg">
</body>
</html>
--
Rob
Comment