1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Adaptive Background help (JQuery)

Discussion in 'jQuery' started by Erick G, Feb 5, 2014.

  1. #1
    Hello all,

    I have been trying to get the Adaptive Backgrounds JQuery plugin to work with no luck.

    Adaptive Background plugin -
    http://briangonzalez.github.io/jquery.adaptive-backgrounds.js/

    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! :)
     
    Erick G, Feb 5, 2014 IP