Re: Supressing specific images

  •  11-08-2010, 8:58 PM

    Re: Supressing specific images

    hi regrossman,
     
    Please try this way
     
    For "Classic" layout
     
    1. Open file "\CuteSoft_Client\Gallery\Layout\Classic\Code.js"
     
    2. Find section below
     
        for(var i=0;i<photos.length;i++)
        {
            var div=this.CreatePhotoDiv(photos[i]);
            this.AttachItemEvent(div);
            this.dng_photolist.appendChild(div);
        }
     
    3. Change to (mean that, if photo not name 'j0227635.jpg',show, else hide it)
     
      if(photos[i].Title!="j0227635.jpg")
            {
            var div=this.CreatePhotoDiv(photos[i]);
            this.AttachItemEvent(div);
            this.dng_photolist.appendChild(div);
            }
     
    For "GridShow" layout
     
    1. Ope file "\CuteSoft_Client\Gallery\Layout\GridShow\Code.js"
     
    2. Find section below
     
            var div=this.CreatePhotoDiv(photos[i]);
            this.AttachItemEvent(div);
            this.dng_photolist.appendChild(div);
     
    3. Change to
     
     if(photos[i].Title!="j0227635.jpg")
             {
                 var div=this.CreatePhotoDiv(photos[i]);
                this.AttachItemEvent(div);
                this.dng_photolist.appendChild(div);
             }
     
    Regards,
     
    ken
     
     
View Complete Thread