D
drillbit_99
I have an HTML page of thumbnail images. Each image can begin a
slideshow of the images on the page by clicking on the image. This
opens another HTML page that begins the slideshow using large images of
the thumbnails. When the slideshow begins it always starts with the
first image. I would like to pass the name of the thumbnail to the
slideshow HTML page and begin the slideshow with the same image the
user clicks on. Is this asking too much? Does anyone have a solution?
-----------------------------------------------------------------
---------thumbnail page
-----------------------------------------------------------------
-----------------------------------------------------------------
-----------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>DHS Homecoming 2005</title>
<meta http-equiv="content-type" content="text/html;
charset=iso-8859-1">
<link rel=stylesheet type="text/css" href="styles.css">
</head>
<body>
<h1 class=title>Homecoming 2005</h1>
<p class=desc>Munson Stadium, Forest Park - September 23,
2005<br><br>Click on any photo to see an enlarged version.
</p>
<br>
<center>
<table cellspacing="12">
<tr>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0021"><img
src="thumbs/DSC00067.jpg" width="192" height="131" border="0"
alt="DSC00067.jpg"></a>
</td>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0018"><img
src="thumbs/DSC00068.jpg" width="192" height="131" border="0"
alt="DSC00068.jpg"></a>
</td>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0020"><img
src="thumbs/DSC00069.jpg" width="192" height="131" border="0"
alt="DSC00069.jpg"></a>
</td>
</tr>
<tr>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0022"><img
src="thumbs/DSC00070.jpg" width="192" height="131" border="0"
alt="DSC00070.jpg"></a>
</td>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0029"><img
src="thumbs/DSC00071.jpg" width="192" height="131" border="0"
alt="DSC00071.jpg"></a>
</td>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0030"><img
src="thumbs/DSC00072.jpg" width="192" height="131" border="0"
alt="DSC00072.jpg"></a>
</td>
</tr>
<tr>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0031"><img
src="thumbs/DSC00073.jpg" width="192" height="131" border="0"
alt="DSC00073.jpg"></a>
</td>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0033"><img
src="thumbs/DSC00074.jpg" width="192" height="131" border="0"
alt="DSC00074.jpg"></a>
</td>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0035"><img
src="thumbs/DSC00075.jpg" width="192" height="131" border="0"
alt="DSC00075.jpg"></a>
</td>
</tr>
<tr>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0038"><img
src="thumbs/DSC00076.jpg" width="192" height="131" border="0"
alt="DSC00076.jpg"></a>
</td>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0039"><img
src="thumbs/DSC00077.jpg" width="192" height="131" border="0"
alt="DSC00077.jpg"></a>
</td>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0040"><img
src="thumbs/DSC00078.jpg" width="192" height="131" border="0"
alt="DSC00078.jpg"></a>
</td>
</tr>
<tr>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0041"><img
src="thumbs/DSC00079.jpg" width="192" height="131" border="0"
alt="DSC00079.jpg"></a>
</td>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0046"><img
src="thumbs/DSC00080.jpg" width="192" height="131" border="0"
alt="DSC00080.jpg"></a>
</td>
</tr>
</table>
</center>
<br>
<br>
<table cellspacing="8">
<tr>
<td width="20" height="20"> </td>
</tr>
</table>
<p class=desc>Last updated: 6/10/2005
</p>
</body>
</html>
-----------------------------------------------------------------
----------slideshow page
-----------------------------------------------------------------
-----------------------------------------------------------------
-----------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>SOSU Marching Contest</title> <script language="JavaScript">
<!-- Begin
NewImg = new Array (
"DSC00081.jpg",
"DSC00082.jpg",
"DSC00083.jpg",
"DSC00084.jpg",
"DSC00085.jpg",
"DSC00086.jpg",
"DSC00087.jpg",
"DSC00088.jpg",
"DSC00089.jpg",
"DSC00090.jpg",
"DSC00091.jpg",
"DSC00092.jpg"
);
var ImgNum = 0;
var ImgLength = NewImg.length - 1;
var delay = 3000;
var lock = false;
var run;
function chgImg(direction) {
if (document.images) {
ImgNum = ImgNum + direction;
if (ImgNum > ImgLength) {
ImgNum = 0;
}
if (ImgNum < 0) {
ImgNum = ImgLength;
}
document.slideshow.src = NewImg[ImgNum];
}
}
function auto() {
if (lock == true) {
lock = false;
window.clearInterval(run);
}
else if (lock == false) {
lock = true;
run = setInterval("chgImg(1)", delay);
}
}
</script>
<link rel="stylesheet" type="text/css" href="../styles.css">
</head>
<body>
<img src="DSC00081.jpg" name="slideshow" width="850">
<table border="10" frame="box" width="850" bgcolor="#FFCC33">
<tr>
<td align="center" width="100">
<a href="javascript:chgImg(-1)">Previous</a>
</td>
<td align="center">
<a href="javascript:auto()">Auto/Stop</a>
</td>
<td align="center" width="100">
<a href="javascript:chgImg(1)">Next</a>
</td>
</tr>
</table>
</body>
</html>
slideshow of the images on the page by clicking on the image. This
opens another HTML page that begins the slideshow using large images of
the thumbnails. When the slideshow begins it always starts with the
first image. I would like to pass the name of the thumbnail to the
slideshow HTML page and begin the slideshow with the same image the
user clicks on. Is this asking too much? Does anyone have a solution?
-----------------------------------------------------------------
---------thumbnail page
-----------------------------------------------------------------
-----------------------------------------------------------------
-----------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>DHS Homecoming 2005</title>
<meta http-equiv="content-type" content="text/html;
charset=iso-8859-1">
<link rel=stylesheet type="text/css" href="styles.css">
</head>
<body>
<h1 class=title>Homecoming 2005</h1>
<p class=desc>Munson Stadium, Forest Park - September 23,
2005<br><br>Click on any photo to see an enlarged version.
</p>
<br>
<center>
<table cellspacing="12">
<tr>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0021"><img
src="thumbs/DSC00067.jpg" width="192" height="131" border="0"
alt="DSC00067.jpg"></a>
</td>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0018"><img
src="thumbs/DSC00068.jpg" width="192" height="131" border="0"
alt="DSC00068.jpg"></a>
</td>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0020"><img
src="thumbs/DSC00069.jpg" width="192" height="131" border="0"
alt="DSC00069.jpg"></a>
</td>
</tr>
<tr>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0022"><img
src="thumbs/DSC00070.jpg" width="192" height="131" border="0"
alt="DSC00070.jpg"></a>
</td>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0029"><img
src="thumbs/DSC00071.jpg" width="192" height="131" border="0"
alt="DSC00071.jpg"></a>
</td>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0030"><img
src="thumbs/DSC00072.jpg" width="192" height="131" border="0"
alt="DSC00072.jpg"></a>
</td>
</tr>
<tr>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0031"><img
src="thumbs/DSC00073.jpg" width="192" height="131" border="0"
alt="DSC00073.jpg"></a>
</td>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0033"><img
src="thumbs/DSC00074.jpg" width="192" height="131" border="0"
alt="DSC00074.jpg"></a>
</td>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0035"><img
src="thumbs/DSC00075.jpg" width="192" height="131" border="0"
alt="DSC00075.jpg"></a>
</td>
</tr>
<tr>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0038"><img
src="thumbs/DSC00076.jpg" width="192" height="131" border="0"
alt="DSC00076.jpg"></a>
</td>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0039"><img
src="thumbs/DSC00077.jpg" width="192" height="131" border="0"
alt="DSC00077.jpg"></a>
</td>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0040"><img
src="thumbs/DSC00078.jpg" width="192" height="131" border="0"
alt="DSC00078.jpg"></a>
</td>
</tr>
<tr>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0041"><img
src="thumbs/DSC00079.jpg" width="192" height="131" border="0"
alt="DSC00079.jpg"></a>
</td>
<td class=thumbnail width="192" height="192">
<a href="pictures/slides.html" name="dsc_0046"><img
src="thumbs/DSC00080.jpg" width="192" height="131" border="0"
alt="DSC00080.jpg"></a>
</td>
</tr>
</table>
</center>
<br>
<br>
<table cellspacing="8">
<tr>
<td width="20" height="20"> </td>
</tr>
</table>
<p class=desc>Last updated: 6/10/2005
</p>
</body>
</html>
-----------------------------------------------------------------
----------slideshow page
-----------------------------------------------------------------
-----------------------------------------------------------------
-----------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>SOSU Marching Contest</title> <script language="JavaScript">
<!-- Begin
NewImg = new Array (
"DSC00081.jpg",
"DSC00082.jpg",
"DSC00083.jpg",
"DSC00084.jpg",
"DSC00085.jpg",
"DSC00086.jpg",
"DSC00087.jpg",
"DSC00088.jpg",
"DSC00089.jpg",
"DSC00090.jpg",
"DSC00091.jpg",
"DSC00092.jpg"
);
var ImgNum = 0;
var ImgLength = NewImg.length - 1;
var delay = 3000;
var lock = false;
var run;
function chgImg(direction) {
if (document.images) {
ImgNum = ImgNum + direction;
if (ImgNum > ImgLength) {
ImgNum = 0;
}
if (ImgNum < 0) {
ImgNum = ImgLength;
}
document.slideshow.src = NewImg[ImgNum];
}
}
function auto() {
if (lock == true) {
lock = false;
window.clearInterval(run);
}
else if (lock == false) {
lock = true;
run = setInterval("chgImg(1)", delay);
}
}
</script>
<link rel="stylesheet" type="text/css" href="../styles.css">
</head>
<body>
<img src="DSC00081.jpg" name="slideshow" width="850">
<table border="10" frame="box" width="850" bgcolor="#FFCC33">
<tr>
<td align="center" width="100">
<a href="javascript:chgImg(-1)">Previous</a>
</td>
<td align="center">
<a href="javascript:auto()">Auto/Stop</a>
</td>
<td align="center" width="100">
<a href="javascript:chgImg(1)">Next</a>
</td>
</tr>
</table>
</body>
</html>