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);
});

I think this code works, but i have not test it.

Pierre

Yogi Berra  - "I never said most of the things I said."

2008/11/21 EC <[EMAIL PROTECTED]>

>
> Hi, i would like to know if is possible to set a default action for
> all href in a page...
>
> I know i can use selectors to find all href but i don't know what to
> put in function.
>
> I just would like that all link open in a lightbox...
>
> Someone can help me?
>
> Thanks
>

Reply via email to