Welcome to TalkGraphics.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2001
    Location
    Lisbon, Portugal
    Posts
    1,043

    Default Need some help setting up Lightbox 2

    For some reason the lightbox2 code isnīt working on my testing site. I donīt know if itīs a js conflict or something else but i need some help to make it work.

    Iīve just added manually rel="lightbox" title="my caption" to the link to activate Lightbox2.
    All needed js files are correctly added to the head section. But meh...it doesnīt work.

    Hereīs an image of the code where iīve made the changes specified above (highlighted):

    http://miguelboto.planetaclix.pt/talkgraphics/code.png

    And hereīs the link for the page online

    Thank you.

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,650

    Default Re: Need some help setting up Lightbox 2

    Not sure what is supposed to happen but when I mouse over the image I see four arrows and when I click the image I see a pale yellow bitmap.

  3. #3
    Join Date
    Jul 2008
    Location
    Phoenix, AZ
    Posts
    267

    Default Re: Need some help setting up Lightbox 2

    You may need to refresh your browser to see any recent changes you made...
    Chris
    LotsMoreHosting.com

  4. #4
    Join Date
    Jul 2001
    Location
    Lisbon, Portugal
    Posts
    1,043

    Default Re: Need some help setting up Lightbox 2

    Gary, what you are seeing is a thumbnail (the first image). The arrows is a mouse over effect and after clicking on the thumbnail a script (Lightbox) should load the final image (the yellow bitmap) in a modal window in the center of the page. The effect is similar to applying a pop-up to an image in Xara. Unfortunately the Lightbox script isnīt working and I donīt know why...

    ckh, yes i know. But thatīs not the case here. I think thereīs some conflict between the js code used by Xara and the Lightbox script. I can make the effect work using Xara and placeholders only but i have to sacrifice the mouse-over effect since i canīt make them work at the same time (we canīt apply a mouse-over to placeholders)

  5. #5
    Join Date
    Jul 2001
    Location
    Lisbon, Portugal
    Posts
    1,043

    Default Re: Need some help setting up Lightbox 2

    [EDIT] The code and link on the first post dontīapply anymore. Itīs not possible to customize the code of links inside Xara. The current solution iīm using now is based on a placeholder. [/EDIT]

    What iīm doing now is using this code in HTML body of a placeholder to call an external thumbnail that will be placed in the page. Thanks to Covoxerīs help it now has a mouse-over effect applied to that "external" thumbnail. Clicking on it should load the lightbox2 script. But for some reason the lightbox 2 script doesnīt work now.

    Iīm betting this is related to a conflict between the js that loads the lightbox script (activated by the rel="lightbox" attribute on the link) and the onmousemove function, but i donīt know enough myself to solve this problem.

    This is the code iīm using with mouse-over (lightbox script donīt work):
    Code:
    <a href="index_htm_files/PaperTile.jpg" rel="lightbox" title="my caption" onclick="return(xr_nn());"><img class="xr_ap" src="index_htm_files/tbn_mercedes_benz_sl.png" alt="Angry face" onmousemove="xr_mo(this,0,event)" style="width: 100%; height: 100%;"/></a>
    The previous code (without the mouse-over effect) that loads the lightbox script correctly was:
    Code:
    <a href="index_htm_files/PaperTile.jpg" rel="lightbox" title="my caption"><img src="index_htm_files/tbn_mercedes_benz_sl.png" alt="Angry face" /></a>
    Any help would be very much appreciated.
    Thank you.
    Last edited by MEB; 29 May 2011 at 04:33 PM.

 

 

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
  •