This is a simple JS function: onclick
will check certain divs and replace the images in these divs.
My question: Can I regulate the transition time between the images using only JS ?
Thank you!
function menu() {
if (document.getElementById("contactus").getAttribute('src') ==
"images/mainpage/image1.png") {
document.getElementById("contactus").src =
"images/mainpage/image2.png";
}
}