James New James New - 1 month ago 16
Javascript Question

Lightbox JavaScript Conflict

Im developing a HTML scrolling site (its no way near finished) but im having problems with my JavaScript. If I declare the source code before the other the last one works but the first one doesnt.

I have a scrolling JavaScript file that creates a slow scroll effect on navigation click, and the other is a lightbox gallery, the two cannot work in sync and I am really puzzled!

http://www.jn-design.co.uk/Portfolio%20Site/HTML5/#topspace

Answer

use a simple lightbox gallery rather then some other jQuery plugin. For example
http://www.cssjockey.com/web-design-tutorials/an-easy-way-to-create-light-box-with-jquery-css

this is a simple jQuery lightbox it need only a single jQuery plugin that you already used on your website