jQuery custom lighbox

Out of context: Reply #11

  • Started
  • Last post
  • 30 Responses
  • monNom0

    move your previous an next functions out to named functions, rather than anonymous functions following prev.click, next.click

    so next.click(function...
    becomes
    next.click(nextFunc...
    and
    function nextFunc () {...

    then call those new functions in your key script.

    to add a caption, mimic the '.append' scripts that add the 'close', 'prev' and 'next' buttons to 'displayImage'.

    • crap, let me do that in pastebin.monNom
    • appreciated!juhls
    • my highlights got screwwed up.

      look for @@ in front of lines that should have been highlighted
      monNom
    • URL? How can I access it?juhls
    • nevermind, I see itjuhls

View thread