C
Cramer
I have this thumbnail.
<img src="../image/PasirRis501/bedroom2.jpg" alt="" title="Bedroom 2"
height="80" width="100" onClick="ChangePhoto(this.src)">
the function
function ChangePhoto(src){
document.MainPhoto.src = src;
}
the MainPhoto for changing
<img src="../image/PasirRis501/balcony.jpg" name="MainPhoto" alt=""
title="Balcony">
I would like to change the title of the mainphoto accordingly. For
e.g. the MainPhoto title should change to Bedroom 2 if bedroom2
thumbnail is clicked.
How do i pass the img object into the ChangePhoto function?
Appreciate any advise.
<img src="../image/PasirRis501/bedroom2.jpg" alt="" title="Bedroom 2"
height="80" width="100" onClick="ChangePhoto(this.src)">
the function
function ChangePhoto(src){
document.MainPhoto.src = src;
}
the MainPhoto for changing
<img src="../image/PasirRis501/balcony.jpg" name="MainPhoto" alt=""
title="Balcony">
I would like to change the title of the mainphoto accordingly. For
e.g. the MainPhoto title should change to Bedroom 2 if bedroom2
thumbnail is clicked.
How do i pass the img object into the ChangePhoto function?
Appreciate any advise.