QuickStart guide
1. Adding JavaScript
In your header section you will need to add two JavaScript files:
2. Adding CSS
In your header section you will need to add one CSS file as well:
3. Configuration of GreyBox
You will need to tell GreyBox where it can find images. You have also the option to preload them. Put this little JavaScript in your header section:
4. onClick call on any DOM object
Now you put onclick on your A or IMG elements, an example:
Launch GoogleIf the user does not have JavaScript enabled he will still visit Google, it just won't be in a GreyBox window.
More information
For more information check out demo.html that is included in the GreyBox distribution. There are lots of examples in the demo.