I want to set time on mouse-over function in JavaScript.
My code is as follow.
<img class="product-image"
src='<?php echo $item['0']; ?>'
onmouseover="this.src='<?php echo $item2['0']; ?>'"
onmouseout="this.src='<?php echo $item['0']; ?>'" />.
This code is working properly but I want to set time when images replaces on mouse-over event.
You can create this JavaScript function to change the image only after
tmsec.Then use this HTML:
Maybe you don’t need it on the
mouseoutthough, but that’s easy enough to change 🙂