locked
How to change an image RRS feed

  • Question

  • In the left part of the main page, there is an image that it's located in "default_files/image001.gif" but doing a search in the WSS server, there is no such file.

    Any help on how to change this?

    Regards.

    Thursday, January 12, 2012 6:49 PM

Answers

  • Hi, below is the script to change the src for the image tag in the page, add the below script in the page,

    <script srchttp://ajax.microsoft.com/ajax/jquery/jquery-1.4.4.min.js" type="text/javascript"></script>
    
    <script type="text/javascript">
    $(document).ready(function (){
    $(document).find("img").each(function(){
    if($(this).attr("src")=="default_files/image001.gif")
    {
    $(this).attr("src","/CustomImage.gif");
    
    }
    
    })
    })
    
    </script>



    Anil
    • Marked as answer by Wayne Fan Monday, January 23, 2012 7:45 AM
    Thursday, January 12, 2012 10:39 PM
  • SP is all about sending everything to the database and then pretending it has a physical home to call it from.

    I am hoping you can find the Site Option drop down on your site and edit the image as a web part

    http://office.microsoft.com/en-us/sharepoint-server-help/content-editor-web-part-HA010024046.aspx

     

     

    • Marked as answer by Wayne Fan Monday, January 23, 2012 7:45 AM
    Friday, January 13, 2012 12:39 AM
  • Right click on the Image Go to Properties you will find the Addess of url. Check if it in the any of the library. & upload your image in that gallery & change the source.
    • Marked as answer by Wayne Fan Monday, January 23, 2012 7:45 AM
    Friday, January 13, 2012 6:50 AM

All replies

  • Hi, below is the script to change the src for the image tag in the page, add the below script in the page,

    <script srchttp://ajax.microsoft.com/ajax/jquery/jquery-1.4.4.min.js" type="text/javascript"></script>
    
    <script type="text/javascript">
    $(document).ready(function (){
    $(document).find("img").each(function(){
    if($(this).attr("src")=="default_files/image001.gif")
    {
    $(this).attr("src","/CustomImage.gif");
    
    }
    
    })
    })
    
    </script>



    Anil
    • Marked as answer by Wayne Fan Monday, January 23, 2012 7:45 AM
    Thursday, January 12, 2012 10:39 PM
  • SP is all about sending everything to the database and then pretending it has a physical home to call it from.

    I am hoping you can find the Site Option drop down on your site and edit the image as a web part

    http://office.microsoft.com/en-us/sharepoint-server-help/content-editor-web-part-HA010024046.aspx

     

     

    • Marked as answer by Wayne Fan Monday, January 23, 2012 7:45 AM
    Friday, January 13, 2012 12:39 AM
  • Right click on the Image Go to Properties you will find the Addess of url. Check if it in the any of the library. & upload your image in that gallery & change the source.
    • Marked as answer by Wayne Fan Monday, January 23, 2012 7:45 AM
    Friday, January 13, 2012 6:50 AM