How to display Next/Previous buttons in LightBox Viewer

Last post 02-02-2012, 9:19 AM by tlocke. 4 replies.
Sort Posts: Previous Next
  •  01-31-2012, 1:04 PM 72888

    How to display Next/Previous buttons in LightBox Viewer

    Since I've build my app for a touch screen, the hover effect that displays the Next and Previous buttons are useless.  Can you tell me how I can force these to display by default?
     
    Thanks! 
  •  02-01-2012, 7:48 AM 72894 in reply to 72888

    Re: How to display Next/Previous buttons in LightBox Viewer

    Hi tlocke,
     
    1. Open file  "\CuteSoft_Client\Gallery\Viewer\LightBox\Code.js"
     
    2. Find section below and delete it (two places, line 73  and line 304 both)
     
    this.prevbtn.style.display="none"; 
     
    3. Find section below and delete it(tow places, line 82 and line 303 both)
     
    this.nextbtn.style.display="none"; 
     
    4. Find section below and delete it
     
    this.prevbtn.style.display=left<w*1/3?"":"none";
    this.nextbtn.style.display=left>w*1/3?"":"none";
     
    Regards,
     
    Ken 
     
  •  02-01-2012, 9:28 AM 72898 in reply to 72894

    Re: How to display Next/Previous buttons in LightBox Viewer

    Thanks Ken.  That does give me what I'm asking, but now I have a new issue.  The "Close X" button on the bottom now doesn't work?  I did exactly as outlined above, and now when I hit the close button, it does close that picture, but then pops up the next one.  So it doesn't actually close the viewer.  Odd.  I'll keep troubleshooting but if you have any further advice on this that would be greatly appreciated.  Can you duplicate your advice above and see if you get the same issue?
     
    Thanks again,
    TL 
  •  02-02-2012, 6:11 AM 72908 in reply to 72898

    Re: How to display Next/Previous buttons in LightBox Viewer

    Hi tlocke,
     
    1. Open file "CuteSoft_Client\Gallery\Viewer\LightBox\Code.js"
     
    2. Find section below and delete it
     
    var HidePrevNext=ToDelegate(this,function(){
    this.nextbtn.style.display="none"; 
    this.prevbtn.style.display="none";
    });
     
    Regards,
     
    Ken 
  •  02-02-2012, 9:19 AM 72913 in reply to 72908

    Re: How to display Next/Previous buttons in LightBox Viewer

    Perfect.  That works!!  :)
View as RSS news feed in XML