View Full Version : Facebox

03-22-2008, 12:58 AM
1) Script Title: Facebox image and content viewer (v 1.1)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/facebox/index.htm

3) Describe problem: More of a request...

Hi everyone.

I've been fiddling with this lovely new script like an amateur but I can't get my way. What I'd really like is to be able to close the Facebox by clicking on its content, as you can with the "Lightbox image viewer" (http://www.dynamicdrive.com/dynamicindex4/lightbox/index.htm)


03-22-2008, 02:18 AM
Sure, try changing the line:

$('#facebox .close').click($.facebox.close)

inside the .js file to just:


03-22-2008, 11:28 AM
Crikey, as simple as that, so much for my fiddling about. Well, at least I learned some stuff from it.

Many thanks sir!