Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorballyg
    • CommentTimeMay 16th 2007
     
    I am trying to put Prev and Next text links in the caption so the user does not have to roll over the image for navigation.

    I have looked at two discussions regarding this but neither clarified it for me:

    http://www.huddletogether.com/forum/comments.php?DiscussionID=1008&page=1
    This discussion dealt mainly with moving the prev and next buttons.

    http://www.huddletogether.com/forum/comments.php?DiscussionID=452&page=1#Item_0
    This discussion supplied code but did not work for me.

    Ive nearly got my lightbox as I want but this is the last element I need to complete it so any help much appreciated!
    • CommentAuthorw33b
    • CommentTimeMay 17th 2007
     
    ballyg,

    what exactly is it your after? my post: http://www.huddletogether.com/forum/comments.php?DiscussionID=1008&page=1
    is an example of the prev and next buttons in the imageDataContainer...is this not what tyou are after?

    W33B
    • CommentAuthorballyg
    • CommentTimeMay 17th 2007
     
    I read over your discussion but I am looking to get the prev and next as simple text, not as images. Any ideas? If anyone could give me the address of a site that does this so I could check it out it would be a great help.
    • CommentAuthorscottg311
    • CommentTimeMay 17th 2007 edited
     
    I'm looking for the same thing.

    The hidden effect of the Prev/Next buttons are useless if the user doesnt know to roll over the image. All the other discussions about this only mention moving the prev/next images. There has to be a simple way to just add Prev/Next text links that are always visible, next to the caption.

    Thickbox has this feature, but doesnt have the cool animating effects like lightbox
    http://jquery.com/demo/thickbox/
    •  
      CommentAuthorBrian
    • CommentTimeMay 17th 2007
     
    You could also just have the images always show, not needing to be rolled over...

    http://zollinhofer.com/lightbox-faq
    • CommentAuthorcako
    • CommentTimeMay 17th 2007
     
    That's it man ! Thanks a lot Brian.
    •  
      CommentAuthorBrian
    • CommentTimeMay 17th 2007
     
    I'm glad that worked for you...
    • CommentAuthorw33b
    • CommentTimeMay 18th 2007
     
    fanny adams...that was the easiest yet!

    http://www.rees-jenkins.co.uk/lightbox2/w33bLightbox2_slidey_text.zip

    have a slideshow with that one too!
    • CommentAuthorballyg
    • CommentTimeMay 18th 2007
     
    Thanks for all the reply's. Ill have a go and let you know how I get on.
    • CommentAuthornadnerb
    • CommentTimeMay 18th 2007 edited
     
    Does anyone know how to set it up like this:
    +--------------------------------------------------------------------+
    | < 4 of 20 > This is the caption, this is the caption X |
    +--------------------------------------------------------------------+

    the "<" and ">" are text links and goto the next and previous images, and the X is the close button.
    I've managed to get all components working correctly, but I can't position them on a single line like above.

    Thanks
    • CommentAuthorballyg
    • CommentTimeMay 23rd 2007
     
    I downloaded your zip file w33b and got the prev next links in as text but couldnt find a way to position them below the image where the rest of my caption is. So I just went for your solution brian of keeping the next and prev images constant over the image. Thanks for the help!
    • CommentAuthorsnooper
    • CommentTimeMay 24th 2007
     
    i would love to see a solution to this too (text based prev/next link in the caption)

    thanks

    (PS in the meantime, i appreciate Brian's solution!)
    • CommentAuthorballyg
    • CommentTimeMay 25th 2007
     
    Snooper

    I haven't actually worked out the solution myself but I have found a site on this forum that uses the prev next text links.

    http://www.leisure-boats.co.nz/trailer_sales.htm

    If you deconstruct it maybe you'll find the answer...and if you do you can let me know!
    • CommentAuthordy
    • CommentTimeMay 31st 2007
     
    ballyg,

    I decipherd that website link you gave. This is what you need to do. Modify lightbox.js as follows:

    1) look for updateDetails: function() {
    2) Comment out:
    if(imageArray.length > 1){
    Element.show('numberDisplay');
    Element.setInnerHTML( 'numberDisplay', "Progress: " + eval(activeImage + 1) + " of " + imageArray.length);
    }

    add the following:
    if(imageArray.length > 1){
    var ndhtml;
    Element.show('numberDisplay');
    ndhtml=""+eval(activeImage+1)+" of "+imageArray.length;
    if(eval(activeImage+1)>1){
    ndhtml="<a id='prevLink2'>back</a>&nbsp;&nbsp;-&nbsp;&nbsp;"+ndhtml;
    }
    if(eval(activeImage+1)<imageArray.length){
    ndhtml=ndhtml+"&nbsp;&nbsp;-&nbsp;&nbsp;<a id='nextLink2'>next</a>";
    }
    Element.setInnerHTML('numberDisplay',ndhtml);
    }

    3) Search for:
    document.getElementById('prevLink').onclick = function() {
    myLightbox.changeImage(activeImage - 1); return false;
    }

    add this after the above search:
    document.getElementById('prevLink2').onclick = function() {
    myLightbox.changeImage(activeImage - 1); return false;
    }

    4) Search for:
    document.getElementById('nextLink').onclick = function() {
    myLightbox.changeImage(activeImage + 1); return false;
    }

    add this after the above search:
    document.getElementById('nextLink2').onclick=function(){
    myLightbox.changeImage(activeImage + 1);return false;
    }

    5) This duplicates what is on leisure-boats, but the hand cursor doesn't show up when you hover your mouse over the 'next' and 'prev' links. To fix this, modify your css for 'a' and add:

    a {
    cursor: pointer;
    }
    • CommentAuthorballyg
    • CommentTimeJun 1st 2007
     
    Cheers dy, ill give it a shot.
    • CommentAuthorballyg
    • CommentTimeJun 1st 2007
     
    Tried it and it worked perfect, thanks very much dy!
    • CommentAuthordy
    • CommentTimeJun 1st 2007
     
    glad to help! there are some bugs in lightbox 2 for IE 7.0! sometimes, the right scrollbar goes crazy. have you had this problem?
    • CommentAuthordy
    • CommentTimeJun 4th 2007
     
    nevermind. the IE fix is discussed here: http://www.huddletogether.com/forum/comments.php?DiscussionID=1129&page=1#Comment_4401