Change image from external HTML using javascript


#1

How can I change image source using javascript?

I have managed to do that with (jquery) in external HTML:

$("#myphotoid").css(“background”, “url(http://192.168.5.60/img/mynephoto.png) no-repeat”);

but next animation frame is restoring original image :frowning:

I would like image to be changed for the rest of animation (looping).