This is my Code,
HTML
<ul id="submenu">
<li data-img="submenu1.jpg"><a href="#">Experience</a></li>
<li>....</li>
<li>....</li>
</ul>
<img id="company-image" data-original="company.jpg" src="company.jpg">
jQuery
$("#submenu li").hover(function() {
$("#company-image").attr("src", $(this).data("img"));
}, function(){
$("#company-image").attr("src", $("#company-image").data("original"));
});
here when i mouseover on the li, removing the existing img src value and adding new img name(submenu1.jpg), while this i need to show the transition for old to new img changing time. and onmouseout time need to show fadeout effect.