View Full Version : Limit to number of images?

03-13-2010, 02:38 AM
1) Script Title: Don't know what to put here?

2) Script URL (on DD): Same problem, don't know what to put here?

3) Describe problem: I'm not a programmer and have no idea what to enter for a script? Or how to modify anything in the DD script. I only know how to add more images to the list (using dreamweaver) to have it display more images. My problem is that I am now up to 258 images in the DD code. If I add anymore images to the list the DD stops working. If I reduce the total images back to 258 it works fine! Nothing else has been done to this page, only the addition of the images. I'm wondering if this script can only handle 258 images and no more? Has a limit been set on the max number of images it can display? If so, can the number be changed to allow more images? If it can what line of the code controls it and what do I need to change it to? Any help would be appreciated. A copy of the disclaimer is below so you know which DD I'm using.

mage Thumbnail Viewer II script- Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use


03-13-2010, 03:05 AM
This is what you need for script title & url:

1) Script Title: Image Thumbnail Viewer II

2) Script URL: www.dynamicdrive.com/dynamicindex4/thumbnail2.htm


I don't think there is a set limit of how many images you can add. I, personally, would start to consider breaking the images into groups (even into several pages) once I got up past 50.

Can you post a link to your code (on your webpage) so we can look it over?

03-14-2010, 03:12 AM
traq is correct. Just to add my perspective on this, there are at least two important things to consider as regards the number of images:

Byte load for the page - You don't want to have so many images that your page is slow to load and/or respond. This includes not only the aggregate byte load of the page (including images), but also the byte load of each individual image. Ideally all images for the web should be optimized for the lowest possible byte size that still exhibits acceptable resolution.

Errors - The more images you include, the more likely you will make a typo or include a corrupt image that may break the script. But, if everything is done properly, there is no actual limit to the number of images. One should however consider the ramifications of the concepts mentioned in #1, possibly others.

And, as traq mentioned, if you want more help:

Please post a link to a page on your site that contains the problematic code so we can check it out.