I have a simple js syntax question.
Here is the code with the trouble spot highlighted red!
var image_name = zoom_0.jpg;
document.write('<IMG id=IMG1 src= + image_name + useMap=#zoom_2 border=0 ></img>');
//for some reason this does not recognize image_name. If I just
//replace the variable with the real image_name (not a variable)
//this code works. I am assuming my problem is quotation marks but
//I cannot figure out how to add them.
Here is the code with the trouble spot highlighted red!
var image_name = zoom_0.jpg;
document.write('<IMG id=IMG1 src= + image_name + useMap=#zoom_2 border=0 ></img>');
//for some reason this does not recognize image_name. If I just
//replace the variable with the real image_name (not a variable)
//this code works. I am assuming my problem is quotation marks but
//I cannot figure out how to add them.