Probably a simple question, I just never did this ... I'm trying to figure out how you will populate the jQuery plugin object / properties array or whatever you call it ... with a regular array.
var imageArray = new Array(); imageArray = ['images/1000x800.png','images/495x880.png','images/600x800.png'];
So, I'm trying to get this in ... a property of the "image" plugin with an unknown number of images ...
jQuery(function($){ $.myPlugin({ slides : [ {image : 'images/1000x800.png'}, {image : 'images/495x880.png'}, {image : 'images/600x800.png'},
Here is an example of what I'm trying to do ... although I do not know the correct syntax ...
jQuery(function($){ $.myPlugin({ slides : [ for(var i=0; i<imageArray.length; i++) { image = imageArray[i]; } ] }); });
Any help is appreciated !!!
source share