Update src/jquery.backstretch.js #182

Open
wants to merge 1 commit into
from

Projects

None yet

3 participants

@marklar423

 - Added support for linked Backstrech images.

The standard way of passing image urls to Backstrech still works, but support has been added for the ability to pass links in an object like so:

$slider.backstretch({ image: '/path/to/image.jpg', link: 'path/to/page.html'});

@marklar423 marklar423 Update src/jquery.backstretch.js
 - Added support for linked Backstrech images. 

The standard way of passing image urls to Backstrech still works, but support has been added for the ability to pass links in an object like so:

$slider.backstretch({ image: '/path/to/image.jpg', link: 'path/to/page.html'});
6f21e07
@julieolson

Thank you SOOOO MUCHHH for this!!
Was searching for a solution like this for the past four hours and coming to the end of my rope on it--
This worked like a dream! I'm so grateful to you for putting this out on the internet!

And in case it's helpful for people viewing this in the future, here is the code I used for loading mulitple images with links into the background of my container called "content-row". (took me some trial and error to get the syntax right for multiple images, since your example used only one image) :

$(".content-row").backstretch([{image: '/images/photo1.jpg', link: 'http://photo1link.com'}, {image:'/images/photo2.jpg', link: 'http://photo2link.com'}], {duration: 6000, fade: 750});

Thank you again!!

@dnavarrojr

I'm still pretty new to github... Did this get merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment