Lucky-8
June 10th, 2008, 01:39 PM
i have in a webpage around 10 pictures which are displayed in a table in small sizes and on the same page on the right side there is a bigger viewing area so that if the user clicks on the image on the left that is displayed on the right............ i have written code for it but wats happening now is once i click on one picture and go on to the next one the picture changes on the right side but if i go back to a previously clicked picture on the left side the change does not show on the right.
function loadPhoto(photoName)
{
//alert("object :"+document.getElementById(photoName+"span"));
//document.getElementById(photoName+"span").style.Z-INDEX = '50';
document.getElementById(photoName+"span").style.left = '230px';
document.getElementById(photoName+"span").style.visibility = 'visible';
document.getElementById(photoName+"span").style.top = '0px';
}
</script>
function loadPhoto(photoName)
{
//alert("object :"+document.getElementById(photoName+"span"));
//document.getElementById(photoName+"span").style.Z-INDEX = '50';
document.getElementById(photoName+"span").style.left = '230px';
document.getElementById(photoName+"span").style.visibility = 'visible';
document.getElementById(photoName+"span").style.top = '0px';
}
</script>