I have a box which is 300x200 in size. I have a maximise button when clicked the box increases to 600x400 in size. There is an image in the box (122x72) which I want doubled in size when the maximised button is clicked. I have used the following bit of code and works perfectly.
document.getElementById("livethumbnail").getElementsByTagName("img")[0].width="224"
document.getElementById("livethumbnail").getElementsByTagName("img")[0].height="144"
However, I intend to put more images on the page within their own box and do not want to give each image a different id.
Is there anyway I can click the maximise button of say box1 and have the image increase in size without affecting image in box 2.
document.getElementById("livethumbnail").getElementsByTagName("img")[0].width="224"
document.getElementById("livethumbnail").getElementsByTagName("img")[0].height="144"
However, I intend to put more images on the page within their own box and do not want to give each image a different id.
Is there anyway I can click the maximise button of say box1 and have the image increase in size without affecting image in box 2.