Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7862675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:14:16+00:00 2026-06-02T23:14:16+00:00

When I include the js for lightbox it prevents my other js from running;

  • 0

When I include the js for lightbox it prevents my other js from running; which means my jquery nav and slide down effects for

divs stop working. Am I including the files in the correctly? I tried the endconflict() in the top of my script but that didn’t work. Any help is greatly appreciated.
Thx

<link rel="stylesheet" type="text/css" href="jquery-lightbox-0.5/css/jquery.lightbox-0.5.css" media="screen" /> <link rel="stylesheet" href="css/bootstrap.css" type="text/css">
<link rel="stylesheet" href="css/bootstrap-responsive.css" type="text/css">
<link rel="stylesheet" href="css/style.css" type="text/css"> 
***<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />***         
<script type="text/javascript" src="js/jquery.js"></script>
<script src="javascript/jquery-1.7.1.min.js"></script>
<script src="javascript/bootstrap.js"></script>
***<script type="text/javascript" src="../lightbox2.05/js/prototype.js"></script>
<script type="text/javascript" src="../lightbox2.05/js/scriptaculous.js"></script>
<script type="text/javascript" src="../lightbox2.05/js/lightbox.js"></script>***
<script>

<a href="images/Screen Shot 2012-02-27 at 9.51.49 PM.png" rel="lightbox">
<img src="../../images/Screen Shot 2012-02-27 at 9.56.49 PM.png" height="180" width="460" alt="">               
</a>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T23:14:18+00:00Added an answer on June 2, 2026 at 11:14 pm

    The problem is that lighbox uses pieces of Scriptaculous and Prototype, which are other javascript libraries like jQuery is. They don’t play nicely with each, so you have to tell jQuery to avoid them.

    Rather than the typical document ready setup that you normally put your jQuery code in:

    $(document).ready(function() {
      // Stuff to do as soon as the DOM is ready;
    });
    

    You will instead wrap your jQuery code in this:

    jQuery(document).ready(function($){
      // Stuff to do as soon as the DOM is ready;
    });
    

    You can read more about handling javascript library conflicts here: http://docs.jquery.com/Using_jQuery_with_Other_Libraries

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a webpage which I'm updating, this page uses Prototype together with Lightbox.
im using lightbox.js it needs prototype.js and i need to use jquery.js. Now both
A programmer installed jquery lightbox and everything was working fine on http://www.ozhiphopshop.com.au/sub_photos.php?id=11 I wanted
I am currently loading a lightbox style popup that loads it's HTML from an
Morning. I have a form which is rendered inside of a jquery dialog box
I have a modal window from which I am calling a lighbox to view
I have two JS files: mail.js and prototype.js prototype.js is from Lightbox plug-in and
I'm using the fancybox lightbox plugin in jquery. It hooks into anchor tags such
<? // Connect database include(cat-config.php); // Get all records in all columns from table
I am trying to use lightbox plus plugin for Wordpress which works fine for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.