now guys my own problem is; I want to implement "color-thief.js" on the expanded preview image.. but somehow, it seems "color-thief.js" doesnt work on dynamically generated image. (I might be VERY wrong tho). I put a portion of my site at http://redcrosscds.site11.com/ (yea, freehosting) :-). ...with all the necessary plugins included.. I'd be very glad if I could be shown what I'm not getting right, as I'm really new to Javascript. Thanx.
PS: --- notice I used the code;
$("#target").load( function(){
var colorThief = new ColorThief();
var color = colorThief.getColor(this);
$("#og-grid > li.og-expanded > div.og-expander").css("background", "rgb(" + color + ")");
//document.getElementById("og-grid").style.backgroundColor = "rgb(" + color + ")";
});
in the included "ctrl-s.js" file on the page.
--- sorry Marko for "hijacking" your topic, I didn't want to create another topic that'll most likely have a similar heading to yours.