PDA

View Full Version : Simple Controls Gallery: No preloading?



Drangsal
08-12-2009, 11:16 PM
Hi,

is there a way to suppress the preloading of images?
Tnx for a hint.

http://www.dynamicdrive.com/dynamicindex4/simplegallery.htm

Ronald

ddadmin
08-13-2009, 06:17 AM
Try finding the following block inside the .js file, and comment out the noted lines using "//":


for (var i=0; i<setting.imagearray.length; i++){
//preloadimages[i]=new Image()
//preloadimages[i].src=setting.imagearray[i][0]
if (setting.imagearray[i][3] && setting.imagearray[i][3].length>setting.longestdesc.length)
setting.longestdesc=setting.imagearray[i][3]
}