News and events
- Popups with FancyBox Hello... today I'm gonna teach you how to show a popup with FancyBox. FancyBox is a tool to show images, html content and...
- Booking Calendar - Online booking plugin for Wordpress Browsing the web, I found this plugin to make online bookings. It's a plugin that allow us to add a form into our blog to make...
- Export a GridView to Word format with ASP.net Following our series of Export to... this time is the turn of Word format. (.doc). Still being really simple. We put the next...
Contact us
If you have any doubt or suggestion, you may contact us with the next form:
Popups with FancyBox
created by Ernesto Traversaro - 28/10/2009
Hello... today I'm gonna teach you how to show a popup with FancyBox.
FancyBox is a tool to show images, html content and multimedia content in a window LightBox like
It was developed using the jQuery library.
Let's go to the example!
First of all, we should add to the page that is going to contain our button to activate the popup, the references to the .js and the .css of FancyBox
frameWidth: width of the popup
frameHeight: height of the popup.
hideOnContentClick: if it's true, when we click in any part inside the popup, this will hide
overlayOpacity: the opacity of the popup background.
Well, now in our html we should have a button with the id "popup"
The href property must be set with the html we want to show in the popup.
And that's all... simple as that. We have our popup working with FancyBox!
FancyBox is a tool to show images, html content and multimedia content in a window LightBox like
It was developed using the jQuery library.
Let's go to the example!
First of all, we should add to the page that is going to contain our button to activate the popup, the references to the .js and the .css of FancyBox
Well, after that, we should add the next javascript code to initialize the button.
Here, a brief explanation of the properties:
frameWidth: width of the popup
frameHeight: height of the popup.
hideOnContentClick: if it's true, when we click in any part inside the popup, this will hide
overlayOpacity: the opacity of the popup background.
Well, now in our html we should have a button with the id "popup"
Open popupIt's necessary that the button have the class property set with the value iframe.
The href property must be set with the html we want to show in the popup.
And that's all... simple as that. We have our popup working with FancyBox!

















![Validate my RSS feed [Valid RSS]](/img/valid-rss.png)
