WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] can't get Google to support my backstretch (1 post)

  1. baggi-t
    Member
    Posted 2 years ago #

    I'm having a problem getting jquery backstretch to run from the Google library. I'm using this code:

    <script type="text/javascript" src="http://www.timbaggaley.co.uk/js-includes/jq_backstretch/lib/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="http://www.timbaggaley.co.uk/js-includes/jq_backstretch/jquery.backstretch.js"></script>
    <script type="text/javascript">
    $.backstretch("IMAGE URL", {speed: 150});
    </script>

    In my test page at: http://timbaggaley.co.uk/backstretch/

    It works fine as I am hosting the libraries on my own site. When I swap the first two lines of code for the google hosting address:

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript" src="/jquery.backstretch.min.js"></script>

    I lose my backstretch image. I'm no programmer but I'm an expert at copy and paste, and I've used code from other sites which work fine using the Google-hosted library, but i cannot get it to work for me. This test page is hand-coded but I have also used the backstretch code with the same problem in WordPress. Host the library myself and it works, hook up to Google and it fails.

    What am I missing?
    Thanks
    Tim, London

Topic Closed

This topic has been closed to new replies.

About this Topic