intermediate - jBgallery 2.0, add random image loading - UPDATED Stampa
Scritto da Carlo Denaro - Blackout   
Carlo Denaro - Blackout

Hi there. I'm add a nice feature in jBgallery 2.0 beta by Massimiliano Balestrieri.

 

 

The mod for RANDOMIZE

In row number 42 i've add a config parameter:

randomize   : true, //RANDOMIZE - blackout: http://www.grayhats.org

and after Interface approx in row 293

 jBGallery.Interface = function(el, data, options){
//RANDOM LOAD - blackout: http://www.grayhats.org
 if( options.randomize==true )
 {
 options.current = Math.ceil(data.length*Math.random());
 if( options.current > data.length || options.current==0 )
 options.current = 1;
 }
 // -- RANDOM LOAD - blackout: http://www.grayhats.org

;-) enjoy open source

Files

jbgallery-2.0 modded

Website

http://code.google.com/p/jbgallery/ - commit add in google code rep ;)


 

Recent Articles by Carlo Denaro - Blackout :