I have three links, Cat, Dog, Snakes. When I hover over each, the content relating to each link should change.
So if i hover over cat, then cat content will appear,
jquery:
$('div.animalcontent').hide(); $('div').hide(); $('p.animal').bind('mouseover', function() { $('div.animalcontent').fadeOut(); $('#'+$(this).attr('id')+'content').fadeIn(); });
html:
dog urlDoggiecontent! cat urlPussiecontent! snake urlSnakecontent!
dog url
cat url
snake url
-edit-
yeah sure, here you go -- JSFiddle