I have five divs on my page (#art #fashion, #self, #nightlife, #community). right now, when you mouseover them, they load page content into another container div (#flyer).
I would like the flyer content to cycle every 5 seconds or so.
So, instead of having to mouseover those 5 divs, it should just automatically go.
does that make sense?
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#art").mouseover(function(){ $('#flyer').load($(this).attr("href") + ' #flyer'); return false; });
$("#fashion").mouseover(function(){ $('#flyer').load($(this).attr("href") + ' #flyer'); return false; });
$("#self").mouseover(function(){ $('#flyer').load($(this).attr("href") + ' #flyer'); return false; });
$("#nightlife").mouseover(function(){ $('#flyer').load($(this).attr("href") + ' #flyer'); return false; });
$("#community").mouseover(function(){ $('#flyer').load($(this).attr("href") + ' #flyer'); return false; });
});
</script>