SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru Todd Temple's Avatar
    Join Date
    Mar 2005
    Location
    Tennessee
    Posts
    790
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can Lightbox Prev and Next Buttons Remain On Screen?

    I have a site where I have incorporated the Lightbox JS by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox/) and the client is wanting the "PREV" and "NEXT" buttons to remain over top of the enlarged image instead of only appearing when the web visitor hovers over the left or right half.

    Does anyone know how to modify the Javascript to do this?
    Todd Temple > T2 Design

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,527
    Mentioned
    84 Post(s)
    Tagged
    4 Thread(s)
    Have you tried commenting out the following lines?

    Code javascript:
    this.prevLink.hide();
    this.nextLink.hide();
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Guru Todd Temple's Avatar
    Join Date
    Mar 2005
    Location
    Tennessee
    Posts
    790
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I fixed it by doing the following:

    BEFORE-
    #prevLink { left:0; float:left;}
    #nextLink { right:0; float:right;}
    #prevLink:hover, #prevLink:visited:hover { background: url(../i/prevlabel.gif) left 15% no-repeat; }
    #nextLink:hover, #nextLink:visited:hover { background: url(../i/nextlabel.gif) right 15% no-repeat; }



    AFTER-
    #prevLink { left:0; float:left; background: url(../i/prevlabel.gif) left 15% no-repeat;}
    #nextLink { right:0; float:right; background: url(../i/nextlabel.gif) right 15% no-repeat;}
    #prevLink:hover, #prevLink:visited:hover {}
    #nextLink:hover, #nextLink:visited:hover {}
    Todd Temple > T2 Design


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
  •