1) Script Title: PHP Photo Album script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...photoalbum.htm
3) Describe problem: I am testing the above and I've hit a problem. I want to use the script to display smilies (many animated gifs) I have the script working OK, I have added my own html content etc. where I am stuck is here
Smilies are not all the same height or width so I would like to align them in the center and vertically align them to the bottom. I have attached a screenshot of what I have, the border was added to troubleshoot.Code:var curimage=0 for (y=0; y<dimension.split("x")[1]; y++){ for (x=0; x<dimension.split("x")[0]; x++){ if (curimage<galleryarray.length) document.write('<div id="slide'+curimage+'" class="slideshow"> '+buildimage(curimage)+'</div>') curimage++ } document.write('<br style="clear: left" />') } }



Reply With Quote

Bookmarks