On Fri, Nov 21, 2008 at 11:28 AM, Pierre Bellan <[EMAIL PROTECTED]> wrote:
> Hi, > > I don't know what lightbox is but it's not important. > Like you said, you just need an selector for all links. > > $('a').click(function(){ > myUrl = $(this).attr('href'); > openLightbox(myUrl); > }); Don't forget the var keyword for myUrl, and return false; so the link doesn't get followed. $('a').click(function(){ var myUrl = $(this).attr('href'); openLightbox(myUrl); return false; }); - Richard