logo
Search
showing results for - "javascript alternance images"
Noemi
06 Oct 2020
1function swap(X)
2     {
3     if ( X.src == "images/icone/RECORD_1.svg" )
4          X.src = "images/icone/RECORD_0.svg" ;
5     else
6          X.src = "images/icone/RECORD_1.svg" ;
7     }
8  
9<img src="images/icone/RECORD_1.svg" onclick="swap(this)">
10
source
similar questions
javascript set image srcjavascript change image srcdouble click sur image change javascriptjavascript swap images on mouseovershow image javascripthow to change size of image jsset image src in javascriptjavascript image to variablejavascrpit add image elementhow to edit image tags in javascripthow to swap two images in javascripthow to insert image in javascript codejs analyse img colorhow to change image source using javascripthow to paste image on upload jsset img src using javascriptsave image jpg javascriptjavascript change more than one images
queries leading to this page
javascript alternance imageschange picture based on value javascriptjavascript alternance images
privacy policyterms of useinstagram
Crafted with  ♥  for everyone

sign in to continue
your answer for
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
sign in to continue
ask question on maxinterview
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content
please be clear, to the point and respectful
sign in to continue