Results 1 to 5 of 5

Thread: Problem with lightbox2.02 and ID

  1. #1
    Join Date
    Dec 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem with lightbox2.02 and ID

    1) Script Title: lightbox2.02

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...box2/index.htm

    3) Describe problem:
    http://www.oplevverden.nu/rejse.asp?rejseoplevelser=69

    I have a problem with lightbox 2.0. It works sometimes, but when clicking next i the "gallery" third time normally doesnt work. It says I have an error in the code. It seems like it doesnt like my numbers in the URL.

    Is there anything to do??

    Thanks
    Peter

  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

    All but one of your larger images appears to be missing or configured improperly, all I get its the loading icon for the 2nd thru the 6th images when clicked.
    - John
    ________________________

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

  3. #3
    Join Date
    Dec 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yeah. But the problem is more when you wish to view all with clicking next. Then some of them only show the loading. Thats pretty strange.

    Can it have something to do with my URL string? rejse.asp?rejseoplevelser=69

    ?

    Thanks for your help
    Peter

  4. #4
    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

    Ah, I see a real problem and a minor problem, there could be others. This script:

    Code:
    <script language="JavaScript1.2" type="text/javascript">
    
    window.focus();
    
    var slideshow_width='780px' //SET IMAGE WIDTH
    var slideshow_height='168px' //SET IMAGE HEIGHT
    var pause=4500 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)
    
    var fadeimages=new Array()
    //SET 1) IMAGE PATHS, 2) optional link, 3), optional link target:
    
    		fadeimages[0]=["banner14.jpg", "", ""] //plain image syntax
    		fadeimages[1]=["banner16.jpg", "", ""] //plain image syntax
    		fadeimages[2]=["bann . . .
    Is outdated and looks like a DD script without the credit, a violation of DD use policy. The missing credit is the minor problem. Lightbox (by the way) is an exception to this use policy, ddadmin has told me that since lightbox is third party and the author hasn't inserted a credit on the calling pages, that's fine with him. The real problem is that the fading slide script is outdated. You should use (usage is different than the old version you have):

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

    instead or, better yet, this version (which I've modded for better xbrowser compliance - usage is the same as the above linked DD library script):

    http://www.dynamicdrive.com/forums/s...22&postcount=2

    In any event, the problem caused by the version you are using is that it defines the variable pause globally. That same variable was defined globally by lightbox but, by the time it goes to use it, it is no longer available as lightbox had defined it.

    The updated fade script will fix this because its variables are local, not global.
    - John
    ________________________

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

  5. #5
    Join Date
    Dec 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks m8. Nice of you to answer me.

    I will insert credit and try the new script.

    Thanks again
    Peter

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
  •