Can someone help me create a script for my navigational "PREVIOUS" & "NEXT" button? Here is my code, for some reason I am missing something to scroll through my pictures USING the previous & next button. I will be using my pictures: townhouse.jpg, townhouse2.jpg, townhouse3.jpg, townhouse4.jpg, townhouse5.jpg.
Also if you notice, I've used excessive this is the only way I know to indent another word. Any thoughts with this one?
PLEASE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR...l1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Townhouse</title>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
<style type="text/css">
.b1 {
color: maroon;
text-align: left;
font-family: Arial, Helvetica, sans-serif;
font-size: 12pt;
margin-top: 0;
margin-bottom: 0;
margin-left: 5px;
}
.b2{
color: olive;
text-align: left;
font-family: Arial, Helvetica, sans-serif;
font-size: 12pt;
margin-top: 0;
margin-bottom: 0;
margin-left: 5px;
}
</style>
<script type="text/javascript">
//<![CDATA[
var propertyWindow;
function showProperty("townhouse.jpg")
propertyWindow=window.open(img src="townhouse.jpg" height="250" width="380" alt="Photo of a townhouse");
//]]>
</script>
</head>
<body>
<p class="b1">Townhouse: <strong>$319,000</strong>
<a href="java script: self.close()">Close Window</a></p>
<p><img src="townhouse.jpg" height="250" width="380" alt="Photo of a townhouse" /></p>
<p><a href="java script: history.go(-1)"><img border="0" SRC="previous_blue.gif"></a>
<a href="java script: history.go(1)"><img border="0" SRC="next_blue.gif"></p>
<p class="b2"><strong>4 bed, 2 bath, 17,33 square feet, .42 acres</strong></p>
</body>
</html>