if you do know the src of any image in design time, it doesn't make sense to write a javascript to load each image. if you have to change the src of an image in run time, you need javascript(or other scripts). so, the problem is what the trigger is. is it a button click or sth like that? you have to make clear for your question.