jQuery custom lighbox
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'.