SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Nov 2007
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using Lightbox and Smooth Scroll

    I am trying to finish my site. I had a smooth-scrolling script on the site already, but wanted to implement the Lightbox v2 script as well, for my portfolio. Everything works fine, except when I go to close the lightbox window, it does not close, but scrolls down a little. I'm assuming that the two scripts are bouncing off of each other. Is there a way to keep them both and have it all work?

    http://www.pigseldesign.com/v2/index.html

  2. #2
    SitePoint Guru
    Join Date
    Sep 2006
    Posts
    731
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Pigsel26 View Post
    Everything works fine, except when I go to close the lightbox window, it does not close, but scrolls down a little. I'm assuming that the two scripts are bouncing off of each other.
    It looks like the lightbox link is being assigned a click handler by smoothscroll. Try installing the scripts in a different order or removing the # from the lightbox link if you can.
    If it doesn't work, try SoftScroll.
    Tab-indentation is a crime against humanity.


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
  •