<?xml version="1.0" encoding="iso-8859-1" ?>
<!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" xml:lang="en" lang="en">
<head>
<script type="text/javascript" language="javascript">
function showPic (whichpic) {
if (document.getElementById) {
document.payment.amount.value = whichpic.price;
document.payment.item_name.value = whichpic.description;
document.getElementById('placeholder').src = whichpic.src;
document.getElementById('amount').childNodes[0].nodeValue = whichpic.price;
document.getElementById('desc').childNodes[0].nodeValue = whichpic.description;
document.getElementById('stuff').childNodes[0].nodeValue = whichpic.other;
document.payment.amount.value = whichpic.price;
document.payment.item_name.value = whichpic.description;
return false;
} else {
return true;
}
}
</script>
<body onload="document.payment.item_name.value=0; document.payment.amount.value=0;")>
<img name="whichpic" src="210.jpg" onclick="showPic(this)" price="100" other="sale" description="silver bedlah" height="100" />
<img name="whichpic" src="211.jpg" onclick="showPic(this)" description="purple bedlah" price="101" other="available" height="100" />
<img name="whichpic" src="212.jpg" onclick="showPic(this)" other="sale" description="gold bedlah" price="102" height="100" />
<br/><br />
<img id="placeholder" src="blank.jpg" height="250" alt="" />
<br/><br />
<p>item: <span id="desc"> </span></p>
<p>price: <span id="amount"> </span></p>
<p>status: <span id="stuff"> </span></p>
<br/><br />
<form method="POST" name="payment">
item: <input type="text" name="item_name" value="" />
price: <input type="text" name="amount" value="" />
</form>
</body>
</html>
Bookmarks