Results 1 to 2 of 2

Thread: Conveyorbelt dlideshow add function

  1. #1
    Join Date
    May 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Conveyorbelt dlideshow add function

    1) Script Title:conveyor belt

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

    3) Describe problem: is it possible to click the IMage in slideshow have it open a larger file then click to close without opening up in new browser.
    What code and where does it go? I'm sorry but I'm just learning!
    Last edited by jscheuer1; 05-22-2010 at 12:11 PM. Reason: change broken link

  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

    Your link to the Conveyor script was broken. Somehow the m at the end of .htm got lost. But if it had been there, it would have linked to an old version of the script:

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

    You should be using the newer version:

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

    Which is what I changed the broken link in your post to point to.

    The usage is essentially the same. The newer script works better in modern browsers.

    Now, what you want to do is open a modal window. Lightbox is one of the most popular:

    http://www.huddletogether.com/projects/lightbox2/

    Once you install it, you can just add its markup to the Conveyor's setup here:

    Code:
    //Specify the slider's images
    var leftrightslide=new Array()
    var finalslide=''
    leftrightslide[0]='<a href="http://"><img src="dynamicbook1.gif" border=1></a>'
    leftrightslide[1]='<a href="http://"><img src="dynamicbook2.gif" border=1></a>'
    leftrightslide[2]='<a href="http://"><img src="dynamicbook3.gif" border=1></a>'
    leftrightslide[3]='<a href="http://"><img src="dynamicbook4.gif" border=1></a>'
    leftrightslide[4]='<a href="http://"><img src="dynamicbook5.gif" border=1></a>'
    For example:

    Code:
    leftrightslide[0]='<a href="larger_image.jpg" rel="lightbox"><img src="dynamicbook1.gif" border=1></a>'
    Where larger_image.jpg is the larger image you want shown.
    - John
    ________________________

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

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
  •