Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Lightbox on page load

Hi,

I'm trying to display a welcome message on my wordpress site, the same way as this example: http://bartenderschoice.se/ . In the popup window I want to place html-content.

From the source code I've understod that the example uses thickbox, the problem is however is that I do not get how the thickbox loads on page load, and not on a click! Please help!

2 Answers

Try Reveal by Zurb. It activates the lightbox popup on page load (or click if preferred). Can contain any content you wish. Used it on a site and it works a treat and much prettier than the example above :)

http://zurb.com/playground/reveal-modal-plugin

I'm going to be very honest here, if I go to a site, and the first thing it does is load a popup, I immediately leave the site. That's it, it's done. I'll find another way. I don't care how good the site content it, the user experience is so terrible on my first impression I leave and I never come back.

I'd find a different way to accomplish the same task.