Re: adding content to the popup photogallery

  •  06-05-2012, 8:03 AM

    Re: adding content to the popup photogallery

    Hi afrika,
     
    the div is an object, can not use div+"string".  Please try the code below, I added a <span> target into this div to shows your custom text.
     
    for(var i=0;i<photos.length;i++)
    {
    var div=this.CreatePhotoDiv(photos[i]);
    this.AttachItemEvent(div);
    var span1=document.createElement("span");
                    span1.innerHTML="some text";
    div.appendChild(span1);
    this.dng_photolist.appendChild(div);
    }
     
    Regards,
     
    Ken 
View Complete Thread