Greybox

Use GreyBox as it's very easy to setup and you can modify the style as it is controlled through CSS. The size is only 22KB.

Greybox demo

Changes to the code below will update the demo above in real time.



June 21, 2007, 7:03 p.m. - carl

doesn't like safari 3.0 for pc

July 18, 2007, 8:40 p.m. - Rod

AWESOME!!!! I was looking so badly for this script!!! Thanks

July 21, 2007, 5:26 a.m. - Somadollara

Thnx for this script it gives my gallery pages fancy look.

July 23, 2007, 7:03 a.m. - PowerUp

This script is good, but has cross domain issue. That is, you cannot hotlink the scripts from other domains.

Nov. 22, 2007, 8:16 p.m. - MissMandy

Does anyone know what the code would be if I wanted to incorporate an SWF or Flash file? Thank you!

Nov. 23, 2007, 2:56 a.m. - Kamal Muhuri

Awesome, nice Demo...

Aug. 24, 2008, 3:41 a.m. - sorell

the back button doesn't work after closing the gallery - moz and opera - any fixes?

Sept. 13, 2008, 1:24 p.m. - CindyCin

I've opened up a page that submits a form. When submitted it takes you to another page that has a back link (via Javascript History code). It doesn't take me back a page, instead it closed the greybox. Is there a workaround to make the Javascript History code simply go back to the previous page that was displayed in the GreyBox?

Oct. 3, 2008, 12:23 p.m. - Ivan

EXCELENTE COMPARE AHORA SI TE LUCISTE ESO EL MEJOR QUE PUDISTE HABER HECHO !!! :)

Feb. 10, 2009, 12:04 p.m. - alex

I have the exact same problem as cindycin..... help

Feb. 23, 2009, 6:25 a.m. - Sebastian

hi, i am interested in the version without loading. it works pretty fine, thanks for the work, but how would i make window size in procentage of the window size, because many users have different screens.

March 4, 2009, 5:07 a.m. - IzrraelSan

Thats a really good script, but ¿how can i do to change the size of that windows?, to 800 x 600 for example. thanks

March 26, 2009, 5:38 a.m. - Subeesh

How to control the height and width of the pages if i am using pageset option ?

April 30, 2009, 4:07 p.m. - Houston Brown

I must use a onLoad in the body tag and when i do, GeyBox stops working. How can I get around this? I see in the FAQ that there is a work around for preloading images, but I am not preloading images? my onload statement looks like this (onLoad="P7_initPM(1,0,1,-20,10);") Many thanks.

May 27, 2009, 12:25 p.m. - kaamiljj

doesn't like safari 4.0 either

Sept. 14, 2009, 10:17 a.m. - Jimmy Liew

Great tool.. I have been using it for quite some time. It is great!

Nov. 6, 2009, 12:07 p.m. - Gotcagain

how do i make a web adress bar?

Nov. 19, 2009, 2:36 p.m. - test

Online Flower World

Dec. 2, 2009, 6:06 p.m. - Mahastew

I’m using greybox code for an image gallery. The problem I’m having is the images don’t load every time, only sometimes. What can I do to make them load consistently?

Jan. 8, 2010, 1:53 a.m. - Test

Not working good with session in IE & FF

Feb. 10, 2010, 6:29 a.m. - Nazar

don't work in all IE why???

Feb. 16, 2010, 12:57 p.m. - nick

Love it and thank you! I am having issues with it when I relpace the inner html of a div in IE6 though.

May 1, 2010, 6:02 a.m. - Nouri

I want to launch the greybox "onload" can any body lead me theway? thanks

July 9, 2010, 12:20 p.m. - Prasanna kumar

hi this is first commenet from prasanna

Oct. 19, 2010, 12:20 a.m. - Peter

If the picture show ends, I'd like the show start over from the first picture. Is it possible?

Feb. 10, 2011, 11:02 p.m. - Rinosh K Sasidharan

Session is not working properly in greybox , any solutions

May 13, 2011, 8:53 a.m. - raul omar

I’m using greybox code for an image gallery. The problem I’m having is the images don’t load every time, only sometimes. What can I do to make them load consistently? with ie 9 and firefox4 whit html5 ans css3

May 20, 2011, 5:01 p.m. - Cillie

I’m also using greybox 5.54 code for an image gallery. Also have the problem with images not loading every time, only sometimes. What can I do to make them load consistently? with ie 9 and firefox4

July 11, 2011, 4:40 a.m. - lance

with the chrome, i change the link to xxx.php, but it is invisible. then i try it on IE6 , it is ok for php. do you know why php just can be seen in chrome?

July 11, 2011, 4:43 a.m. - lance

php type is invisible in chrome just chrome! it is ok in even IE6!!!

Feb. 3, 2012, 2:35 a.m. - pavan

i am not able to implement the same grey box to the chrome browser. It works fine in IE. Kindly help.

April 3, 2012, 7:30 a.m. - herat

asda fasfasf asf af sf

Jan. 22, 2013, 4:49 a.m. - Jerin

Ty..Excellent tutorial