Still as part of my next project, and still wanting to move reusable code into autonomous projects, I wrote simplebox, a lightbox-like library: a javascript library to display modal elements in a web page.

There already exist a lot of modal javascript libraries, but I was looking for one that:

  1. worked with prototype
  2. does not need
  3. works for random html content (not only images)
  4. was opensource

So, I wrote my own. You can see a basic example or check code at github.