Response title
This is preview!
<script type="text/javascript">
$(document).ready(function(){
$(ul#imageLinks a').click(function(){
newImage = this.id.replace('Link', '');
if(currentImage){
$('#currentImage').fadeOut('slow');
}
currentImage = newImage;
$('#currentImage').fadeIn('slow');
});
});
</script>
<ul id="imageLinks">
<li><a id="imageLink1">Image 1</a></li>
<li><a id="imageLink2">Image 2</a></li>
</ul>
<img id="image1" src="/path/to/image1.jpg" style="display:none;" />
<img id="image2" src="/path/to/image2.jpg" style="display:none;" />
© 2013 jQuery Foundation
Sponsored by and others.