i have created the following: -

http://www.ruks.co.uk/inscape.html

As you see when you click on the colour red or blue it change the Pilasters but once a color is select you cannot select the other colour

how can this been done

any help be appriciated

Thanks

ruksana

Here is the 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=utf-8" />
<title>Inscape</title>

<style type="text/css">

#div1 {
width:900px;
height:300px;
background-image:url(bathroom.jpg);
}

p {
font-family:Verdana;
font-weight:bold;
font-size:11px
}

</style>

<script language="javascript" type="text/javascript">
function changeDivImage()
{
var imgPath = new String();
imgPath = document.getElementById("div1").style.backgroundImage;

if(imgPath == "url(bathroom.jpg)" || imgPath == "")
{
document.getElementById("div1").style.backgroundImage = "url(pilasters_red.jpg)";
}
else
{
document.getElementById("div1").style.backgroundImage = "url(pilasters_blue.jpg)";
}
}
</script>

</head>

<body>
<div id="div1">
</div>
<br /> Select Pilasters Colour <br/>
<input type="image" onclick="changeDivImage()" src="red.jpg" />
<input type="image" onclick="changeDivImage()" src="blue.jpg" />



</body>
</html>