I have an existing script i've been using for content display. Currently it works when you click on a link. Is it possible to modify it to work on mouse-over instead of a click.
Here is my fiddle:
HTML:
<a href="#" id="1"><div class="block"></div></a>
<a href="#" id="2"><div class="block"></div></a>
<a href="#" id="3"><div class="block"></div></a>
<div class="content"></div>
JavaScript:
$( document ).ready(function() {
$('#1').click();
});
$('#1').click(function() {
$('.content').html('This is a text example 1');
});
$('#2').click(function() {
$('.content').html('This is a text example 2');
});
$('#3').click(function() {
$('.content').html('This is a text example 3');
});