This jQuery should give me thumbnail view of the icjpg.gif but it does not give the actual image that are in the document library. Any idea what I am doing wrong? It just gives me the sharepoint icjpg.gif in bigger size. It's supposed to be working. <http://sharepointblog.kellerschroeder.com/2009/05/using-jquery-to-display-image.html>
![enter image description here](https://i.stack.imgur.com/e5ymo.png)

```
<SCRIPT defer type=text/javascript> 
$(document).ready(function(){ 
$("img[src$='icjpg.gif']").each(SetImage); 

}); 
function SetImage() 
{ 

$(this).attr('height','100'); 
$(this).attr('src',$(this).parent().attr('href')); 

} 
</SCRIPT>

```