dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: Two Script Conflicts

  1. #1
    Join Date
    Jan 2007
    Posts
    10

    Two Script Conflicts

    I'm using two scripts on one page, one for a Lightbox gallery effect:

    <body onload="MM_preloadImages('images/contact_over.gif','images/about_over.gif');initLightbox()">

    And one for a DIV fade-in effect:

    <script type="text/javascript">

    $(window).bind('load', function() {
    $('div').fadeIn('slow');
    });

    </script>

    But adding the Lightbox script breaks my DIV fade-in:


    http://www.24hourhotline.net/design.html

    I have the display:none removed from the style for the offending DIV for the time being, so this page will even work.

    How can I utilize both the fade-in script and use the LightBox gallery script at the same time?

    Thanks!

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Library conflict: http://docs.jquery.com/Using_jQuery_...ther_Libraries
    Also never use the onload attribute in body; place those functions in a jQuery ready function

  3. #3
    Join Date
    Jan 2007
    Posts
    10
    Thank you - let me look into this further but I may need some clarification.

    The <body> onload attribute is placed there by the Fourlevel.com Lightbox extension for Dreamweaver and the fade-in script was found on the actual jQuery forum.

    Thanks again.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles