Results 1 to 3 of 3

Thread: Two Script Conflicts

  1. #1
    Join Date
    Jan 2007

    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() {


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


    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?


  2. #2
    Join Date
    Apr 2003
    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
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Jan 2007
    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