Is it possible to call a JavaScript function from the IMG SRC tag to get an image url?
Like this:
No. The Img's SRC attribute is not an event, therefore the inline JS will never fire.