Backstretch jQuery Plugin

Permalink
Hey,

I wanna try jQuery Plugin backstretchhttp://srobbin.com/jquery-plugins/backstretch/...
I set it up as explained but it only works with V1, not with V2. What am I doin wrong?

heres my site:

http://lmenges.org

Thanks!

micrdy
View Replies:
adamjohnson replied on at Permalink Reply
adamjohnson
Have you seen:

http://www.concrete5.org/marketplace/addons/backstretch/...

You could also use CSS to do the heavy lifting depending on the browsers you're looking to support:

body { background-size: cover; }


More on that stuff:

http://adamjohnsondesign.com/blog/use-background-size-yepnope-moder...
INTcommunications replied on at Permalink Reply
INTcommunications
Not sure why someone is charging for a free jquery plug-in? Just add the jquery code to the function.js file in the js folder - in whatever theme you are using - just don't load the jquery library again because it is already loaded by Concrete5.
INTcommunications replied on at Permalink Reply
INTcommunications
Also - besides the jquery twice thing - the order that some scripts load make a difference - if a javascript file changes a css class and then the CSS loads after - it may cancel the switch in the first place. Anyway they have to be in the right order. usually CSS first then Javascript - most people these days put the javascript at the bottom - just before the </body> tag
micrdy replied on at Permalink Reply
micrdy
Got it!

I included the backstretch.js and the call under the <?php Loader::element('footer_required'); ?> tag.

Thank you!