Results 1 to 3 of 3

Thread: script within a script?

  1. #1
    Join Date
    Mar 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default script within a script?

    1) Script Title: drop down content

    2) Script URL (on DD):

    http://www.dynamicdrive.com/dynamici.../dropinbox.htm

    3) Describe problem: I have this script working good on my page. I also have another script called lightbox working in other pages. My problem is that when i try to use the lightbox in an image that is within the content drop down script, the lightbox does not show. Is there a know issue that i am unaware of?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Lightbox initializes its links onload. If the other script creates links after that, they won't be initialized. There are various versions of lightbox. Usually any of these can be integrated with another script, though not always easily. The best method would depend upon this other script, the version of lightbox being used, and what exactly you want lightbox to do (some versions of lightbox can do groups).
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    well the drop down script does do the onload thing you were talking about. But it just dawned on me that maybe I could solve the problem by having the files loaded after the javascript files that handles the drop down content. and that seems to have fixed it. so now it does work. I just moved the code for the lightbox to then end of the head section and all is good.

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
  •