+ Reply to Thread
Results 1 to 2 of 2

Thread: Clash of JavaScript/jQuery

  1. #1

    Default Clash of JavaScript/jQuery

    I am having an annoying clash of JavaScript/jQuery, I wonder if anyone is able to help?

    My page: http://www.matine.co.uk/parallax-trial.html

    So I have been trying out Parallax Scrolling which has gone ok (after much work of course!)... and then I tried to create an image gallery with a Lightbox mechanism. After MUCH trial and error to work out why the Lightbox wasn't working, I worked out that the Parallax and the Lightbox scripts are clashing...

    The Lightbox mechanism only works if I remove the following line of code which are the links needed for the Parallax mechanism (at the bottom of the HTML page):

    <!-- Our Javascript, starting with jQuery -->
    <script src='js/libs/jquery-1.6.1.min.js'></script>
    <script src="js/script.js"></script>
    <!--[if lt IE 7 ]>
    <script src="js/libs/dd_belatedpng.js"></script>
    <script>DD_belatedPNG.fix("img, .png_bg");
    <![endif]-->

    The problem is that I don't really understand any of the scripts, I'm actually not even sure which ones are jQuery or Javascript in the scripts I have used! Not very good!

    Anyone?!

  2. #2

    Default

    Panic Over!! I sorted it!

+ Reply to Thread

Similar Threads

  1. Why Use jQuery for Simple JavaScript Tutorials?
    By Impressive Webs in forum Web Design RSS Feeds
    Replies: 0
    Last Post: 2nd Jan 2012, 01:18 pm
  2. Jquery Toggle
    By stevepender100 in forum Code
    Replies: 4
    Last Post: 12th Dec 2011, 07:21 pm
  3. Useful JavaScript and jQuery Tools, Libraries, Plugins
    By Smashing Magazine in forum Web Design RSS Feeds
    Replies: 0
    Last Post: 7th Apr 2011, 11:30 pm
  4. Unobtrusive JavaScript is not necessarily accessible JavaScript
    By 456 Berea Street in forum Web Design RSS Feeds
    Replies: 0
    Last Post: 26th Jan 2010, 08:19 pm
  5. Find nasty JavaScript with the Obtrusive JavaScript Checker
    By 456 Berea Street in forum Web Design RSS Feeds
    Replies: 0
    Last Post: 10th Nov 2008, 06:19 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts