Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link type="text/css" href="layout.css" rel="stylesheet" media="screen" />
<title>Jim Nelson Portfolio</title>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!-- Hide this script from non-javascript-enabled browsers
/////////////////////////////////////////////////
// The swap() function constructs a file name
// based on the input parameter and then sets
// the slideshow image's source to that
// file name.
//
// Note: the initial image determines the size
// of the slideshow "frame". Swapping to
// a larger image causes that larger image to
// be squeezed to fit the initial image "frame".
/////////////////////////////////////////////////
function swap(newImage,txt) {
document.slideshow.src = newImage.toString() + ".jpg"
document.getElementById('footer').getElementsByTagName('P')[0].innerHTML=txt||'';
}
// stop hiding -->
</SCRIPT>
</head>
<body>
<div id="container">
<div id="mainmenu">main menu</div>
<div id="menu">menu</div>
<div id="thumbs">
<INPUT type="image" src="thumb1.jpg" VALUE="Picture #1" onClick="swap('art_033','Text 1')">
<INPUT type="image" src="thumb2.jpg" VALUE="Picture #2" onClick="swap('2','Text 2')">
<INPUT type="image" src="thumb3.jpg" VALUE="Picture #3" onClick="swap('3','Text 3')">
<INPUT type="image" src="thumb1.jpg" VALUE="Picture #4" onClick="swap('4','Text 4')">
<INPUT type="image" src="thumb2.jpg" VALUE="Picture #5" onClick="swap('5','Text 5')">
</CENTER>
</div>
<div id="show">
<div id="image">
<P>
<CENTER>
<IMG NAME="slideshow" SRC="art_055.jpg" WIDTH="467" HEIGHT="463">
</CENTER>
<P></div>
</div>
<div id="footer">
<p>this text to change as image clicked </p>
</div>
</div>
</body>
</html>
Bookmarks