Home

Add a comment

 

Avatar: Steve Eller

Re: Just released: color-finder

I just found your script and I can't seem to find a solution to getting the background for my targeted div to be anything other than black. I have try setTimeout and it doesn't work. I also tried this to try to get the image to load before the script and it still doesn't work. Please go to: http://metooplace.com/test-post-1/ to see what I'm talking about. $("singlePostImg").one("load", function() { var rgb = new ColorFinder().getMostProminentColor(document.getElementById('singlePostImg')); document.getElementById("blogPageHeader").style.backgroundColor = 'rgb('+rgb.r+','+rgb.g+','+rgb.b+')'; }).each(function() { if(this.complete) $(this).load(); });

Re: Just released: color-finder


Title
Body
HTML : b, strong, i, em, blockquote, br, p, pre, a href="", ul, ol, li, sub, sup
OpenID Login
Name
E-mail address
Website
Remember me Yes  No 

E-mail addresses are not publicly displayed, so please only leave your e-mail address if you would like to be notified when new comments are added to this blog entry (you can opt-out later).

Home