Javascript

Friday, July 26, 2013

Popping a capsule

You can pop a capsule from any link or image on your web site, rather than embed it.  This offers some advantages over embedding:

  1. You can use whatever screen real estate you like.  Often a wider space than a typical web column (of about 550-600px) will offer a better user experience.
  2. Provide a different look and feel - the background is dimmed out while the capsule is popped
  3. Separate clearly between editorial and advertising
To try out popping a capsule, click the link below.

Click Here!

This works by calling a JavaScript function to pop a capsule.  To get this working, you will need to do two things:

  1. Add custom JavaScript to your web site
  2. Add custom styles to your web site controlling the popup window
The custom JavaScript and styles are available from 42&Park upon request.  (However, the industrious can retrieve those resources from this sample if you are so inclined!)

No comments:

Post a Comment