Re: Get Image name from Image Gallery

  •  12-03-2013, 8:49 AM

    Re: Get Image name from Image Gallery

    Hi narendrababu,

     

    1. Open file \CuteSoft_Client\Gallery\Layout\Classic\Code.js

     

    2. Find section below 

     

    1. img.onclick=ToDelegate(this,function()  
    2. {  
    3.     this.Browser.ShowViewer(div.dngphoto);  
    4. });  
     

    3. Change it to

     

    1. img.onclick = ToDelegate(thisfunction () {  
    2.      for (var j = 0; j < document.getElementsByClassName("GalleryPhotoItem").length; j++) {  
    3.          if (document.images[j].className == "GalleryThumbnailImage") {  
    4.              document.images[j].parentElement.style.border = "";  
    5.          }  
    6.          if (document.images[j].src.substr(document.images[j].src.lastIndexOf("/") + 1) == photo.Thumbnail.substr(photo.Thumbnail.lastIndexOf("/") + 1)) {  
    7.              document.images[j].parentElement.style.border = "solid 3px red";  
    8.          }  
    9.      }  
    10.   
    11.  });  
     

    4. Find section below

     

    1. div.ondblclick=ToDelegate(this,function()  
    2.     {  
    3.         this.Browser.ShowViewer(div.dngphoto);  
    4.     });  
    5. Change it to

     

    1. div.ondblclick=ToDelegate(this,function()  
    2.     {  
    3.     });  

    Regards,
     
    Ken 
View Complete Thread