Dear VanAwful,
Please follow steps:
1. Open "\CuteSoft_Client\Gallery\Layout\Classic\Code.js"
2. Add the following code at the bottom of this file:
GalleryLayout.prototype.CreatePhotoDivNull=function _GalleryLayout_CreateItemDiv(photo)
{
var div=document.createElement("DIV");
div.className="GalleryPhotoItem";
div.dngphoto=photo;
var t=document.createElement("TABLE");
t.style.width="100%";
t.style.height="100%";
t.border=0;
t.cellSpacing=0;
t.cellPadding=0;
var c1=t.insertRow(-1).insertCell(-1);
var c2=t.insertRow(-1).insertCell(-1);
c1.className="GalleryItemImageCell";
c1.onselectstart=new Function("","return false");
c2.style.textAlign="center";
var scale = Math.min(128/photo.Width, 96/photo.Height);
var img=this.Browser.CreateThumbnail(photo.Thumbnail,Math.floor(photo.Width * scale),Math.floor(photo.Height * scale));
c1.appendChild(img);
img.style.cursor="hand";
img.onclick=ToDelegate(this,function()
{
this.Browser.ShowViewer(div.dngphoto);
});
c2.innerHTML="<span class='GalleryItemText'></span>";
var titltText="";
if(titltText&&titltText.length>30)titltText=titltText.substring(0,30)+"..";
c2.firstChild.appendChild(document.createTextNode(titltText));
if(this.Browser.Param.AllowShowComment)
{
var cs=photo.Comments;
if(cs&&cs.length)
{
c2.innerHTML+="<br/><span class='GalleryItemNumComments'>"+cs.length+" "+GalleryLocalize.NUMCOMMENTS+"<span>";
}
}
div.appendChild(t);
return div;
}
3. Change the following code:
GalleryLayout.prototype.DrawUI=function _GalleryLayout_DrawUI()
{
clearTimeout(this._animationTimerid);
this.dng_photolist.innerHTML="";
var photos=[];
for(var i=0;i<this._categories.length;i++)
{
photos=photos.concat(this._categories[i].Photos);
}
for(var i=0;i<photos.length;i++)
{
var div=this.CreatePhotoDiv(photos[i]);
this.AttachItemEvent(div);
this.dng_photolist.appendChild(div);
}
}
to:
GalleryLayout.prototype.DrawUI=function _GalleryLayout_DrawUI()
{
clearTimeout(this._animationTimerid);
this.dng_photolist.innerHTML="";
var photos=[];
for(var i=0;i<this._categories.length;i++)
{
photos=photos.concat(this._categories[i].Photos);
for(var j=0;j<this._categories[i].Photos.length;j++)
{
//You can change this condition
if(i<2)
{
var div=this.CreatePhotoDiv(this._categories[i].Photos[j]);
this.AttachItemEvent(div);
this.dng_photolist.appendChild(div);
}
else
{
var div=this.CreatePhotoDivNull(this._categories[i].Photos[j]);
this.AttachItemEvent(div);
this.dng_photolist.appendChild(div);
}
}
}
}
4. After done, please test it again.
Thank you for asking