I am a javascript beginner.
function PlayPause() {
if (playing) {
playing = false;
v*****s.pause();
} else {
playing = true;
v*****s.play();
}
};
what I want is add a line which change the source of an image in my html code. do exist something like this
function PlayPause() {
if (playing) {
playing = false;
Vianeos.pause();
src="img_1"
} else {
playing = true;
Vianeos.play();
src="img_2"
}
};
I hope that you understand what I mean. if need to be more explicit just ask me :)