Here is an html sample for one card:
<div class="col s4">
<div class="card">
<div class="card-image">
<img src="img/forZane/Bowl_Andrew (1).jpg" onmouseover="hover(this);" onmouseout="unhover(this);">
</div>
<div class="card-content">
<h4 class="md-font">ceramic one.</h4>
<p class="md-font">$50.</p>
</div>
</div>
</div>
and this is the javascript that i'm using:
element.setAttribute('src', 'img/forZane/Bowl_Andrew (2).jpg');
}
function unhover(element) {
element.setAttribute('src', 'img/forZane/Bowl_Andrew (1).jpg');
}
I can't figure out how to apply this function/hover technique to different cards with different images.
Any help would be greatly appreciated.