View Full Version : Images in virtual pagination script

09-15-2011, 03:51 PM
1) Script Title: Virtual pagination script v2.1

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/virtualpagination.htm

3) Describe problem: The array in gallery flatview are replaced by images.
Must these images be stored locally or can they be called remotely

ie would replacing
gallery4.buildpagination("galleryalt", ["<img src=./images/castle.jpg />"

gallery4.buildpagination("galleryalt", ["<img src="http://domain.com/images.jpg" />" break any rules ?

09-15-2011, 05:25 PM
Neither one is valid javascript code. If they are fragments of valid code, the second one should probably be:

gallery4.buildpagination("galleryalt", ["<img src='http://domain.com/images.jpg' />"

But according to the documentation, both parameters must be arrays, so:

gallery4.buildpagination(["galleryalt"], ["<img src='http://domain.com/images.jpg' />"

And that's still just a fragment, the second array needs to be closed and perhaps have another item or items in it, and the function lacks a closing ).