Results 1 to 3 of 3

Thread: Running 2 scripts problem

  1. #1
    Join Date
    Nov 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Running 2 scripts problem

    1) Script Title: Marquee scroller & Lightbox photo viewer

    2) Script URL (on DD): http://dynamicdrive.com/dynamicindex...tbox/index.htm

    3) Describe problem: I can't run both scripts at the same time. If I disable the scroller then the lightbox will run but it will not run when the scroller does. Appreciate any help.

  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

    At the end of the lightbox.js script (use a plain text editor like NotePad), change:

    Code:
    addLoadEvent(initLightbox);	// run initLightbox onLoad
    to:

    Code:
    if (window.addEventListener)
    	window.addEventListener('load', initLightbox, false);
    else if (window.attachEvent)
    	window.attachEvent('onload', initLightbox);
    There could also be other problems though. If so, the best bet would be to upgrade to Lightbox v2.04a:

    http://home.comcast.net/~jscheuer1/side/lightbox2.04a/
    - John
    ________________________

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

  3. #3
    Join Date
    Nov 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks John, I upgraded to the new script and it works fine.

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
  •