D
Don G
I am trying to convert my HTML 4.01 Transitional code over to HTML 4.01
Strict (and later into XHTML), but when I go from Transitional to
Strict, part of my JavaScript stops working.
I have validated the HTML, both Transitional and Strict, so I am not
using any deprecated attributes. I have the image coded like this:
<img src="./images/spacer.gif" alt="spacer" name="myImage">
Then I have some JavaScript to change the image depending on the
thumbnail clicked. The JavaScript function is coded like this:
function setImage(imgNum) {
which_image_loaded = imgNum - 1;
if (which_image_loaded < 0)
which_image_loaded = NUMBER_OF_IMAGES - 1;
if (which_image_loaded == NUMBER_OF_IMAGES)
which_image_loaded = 0;
myImage.src = ImageNames[which_image_loaded];
}
Does anyone have a clue as to what the problem might be?
Thank you for your help,
Don
Strict (and later into XHTML), but when I go from Transitional to
Strict, part of my JavaScript stops working.
I have validated the HTML, both Transitional and Strict, so I am not
using any deprecated attributes. I have the image coded like this:
<img src="./images/spacer.gif" alt="spacer" name="myImage">
Then I have some JavaScript to change the image depending on the
thumbnail clicked. The JavaScript function is coded like this:
function setImage(imgNum) {
which_image_loaded = imgNum - 1;
if (which_image_loaded < 0)
which_image_loaded = NUMBER_OF_IMAGES - 1;
if (which_image_loaded == NUMBER_OF_IMAGES)
which_image_loaded = 0;
myImage.src = ImageNames[which_image_loaded];
}
Does anyone have a clue as to what the problem might be?
Thank you for your help,
Don