Hello all, I have been trying to get the Adaptive Backgrounds JQuery plugin to work with no luck. The > Adaptive Background plugin < website. This is what I have so far. <!doctype html> <html lang="en"> <head> <title>Adaptive Background Test</title> <meta charset="UTF-8"> <script>src="js/jquery-2.1.0.min.js"</script> <script>src="js/jquery.adaptive-backgrounds.min.js"</script> </head> <body> <img src="img/lion.jpg" data-adaptive-background='1'> <br> <img src="img/lion2.jpg" data-adaptive-background='1'> <script> $(document).ready(function(){ $.adaptiveBackground.run() }); </script> </body> </html> HTML: If anyone can help me out I would really appreciate it! Thank you in advance!
You might have better luck asking in the jQuery area of the forums -- though to be frank that's the type of "gee ain't it neat" script-tard garbage that has no business being done client side; a poster child for everything wrong with jQuery and the people who promote it's use on websites. Just gaussian blur in a paint program to get the color and use it in the CSS in the first place, instead of wasting time and bandwidth on some garbage jQuery nonsense to do it on the fly. Don't take this the wrong way, but anyone who thinks THAT is worth wasting 7k for the script itself, and another 36 to 91k for the steaming pile of "let's piss all over a websites speed and usefulness" known as jQuery -- probably doesn't know enough to actually be building websites. Especially when it 'needs' the HTML5 "let's just let people make up their own attributes" idiocy to even function.
I am not planning to use this on a commercial website. I was just doing it for learning purposes. Thank you for the response / suggestions either way!