How do I call up an image tag?
I have different images on my site in img tags.
I would like the images to swap at a sertain point, so I would like to use a sentence like this one:
if (share_btn.png == "share_btn.png"){
share_btn.png = 'share2_btn.png'
}
I basically want to check if the image is image A or image B at that point, and if it’s image A, then swap it to image B.
I guess I have to have a name or id or something on the img src so that I can call it up in the if sentence.
Can anyone help me?
Name this file yourpage.php: