PDA

View Full Version : Conveyor Belt slideshow script Image limit



kennyd
05-28-2013, 02:16 PM
1) Script Title:
Conveyor Belt slideshow script

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm

3) Describe problem:

it seems that if there are more than 10 images, a left right scroll bar appears on the bottom of the page.
Is there a way of adding more that 10 images (I want to add at least 100 images) without having the page scroll right to left? thanks in advance.....

djr33
05-28-2013, 02:28 PM
It will help if you can give us a link to your page. What do you mean "scroll right to left"? Is the conveyer belt too wide for the page, or does the belt itself get a scrollbar in it?

And what do you want to do, if you hide the scrollbar? It may be as simple as adding the CSS property overflow:hidden or something along those lines, but it also depends on how you want it to work.

And by the way, using 100 images (or especially much more than that) might make the page load very slowly or become sluggish. It also depends on the size of the images, though. If they're tiny thumbnails (~10-20kb) that shouldn't be too bad, but it'll still add up to 1mb of images to keep track of. Just keep that in mind.

jscheuer1
05-28-2013, 03:49 PM
What djr33 says is generally true about the number of images and their byte size. These are like other images on the page, they have to load. The more total bytes they represent, the longer that takes and the longer it takes for the page to load.

But I'm familiar with this script. The problem you report usually happens when the total width of the images is greater than 9000 pixels. If that's the problem your images must be pretty wide - not a good thing if 11 or so of them fill up that space. But you can increase the total width allowed by increasing this number in the script:


document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>')

Since it's negative, it's really decreasing. Anyways, make it like -90000 or even -900000.

Try using smaller images though, and less images. The smoothness of the scrolling motion can also be affected if the images are large in byte size or even large in width and/or height.

The browser cache may need to be cleared and/or the page refreshed to see changes.

If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.

kennyd
05-29-2013, 03:23 AM
I decided to use the Text and Image Crawler v1.53 instead of the Conveyor Belt. it's an easier script to set up and doesn't cause the problems......Thanks anyway for the quick response......