Is it possible to call a JavaScript function from the IMG SRC tag to get an image url?
Like this:
how about this?
var imgsBlocks = new Array( '/1.png', '/2.png', '/3.png'); function getImageUrl(elemid) { var ind = document.getElementById(elemid).selectedIndex; document.getElementById("get_img").src=imgsBlocks[ind]; }
it's not work?