locked
Sharepoint 2007 - Has anyone got the full JS Query script/code for showing picture images in a document library? RRS feed

  • Question

  • I have a script that goes out to my web browser to get the JSQuery but due to high security on my work laptop since a recent upgrade it is now blocked.  This what I had, can anyone give me the full JSQuery part (I can't download either due to high security.

    <SCRIPT language=javascript src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js" type=text/javascript></SCRIPT> 
    
    <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>
    
    

    
    
    
    
    • Moved by Pratik Vyas Thursday, January 31, 2013 8:25 AM SharePoint 2007 related
    Thursday, January 24, 2013 2:54 PM

Answers

  • Hi Shei71,

    Question 1: From where to download JQuery Base Library?
    Answer 1: http://code.jquery.com/jquery-1.7.2.min.js

    Question 2: How to include JQuery Script?
    Answer 2: Upload the JQuery base library to the Assets list and include the library using the below syntax
    <script type="text/javascript" src="http://www.cnblogs.com/Assets/jquery-1.7.2.min.js"></script>

    Thanks,

    Jack


    Jack Gao
    TechNet Community Support

    Thursday, January 31, 2013 6:45 AM
    Moderator