Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Facebox for prototype.js
JavaScript PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
css
images
js
README.rdoc
ajax.php
example.html

README.rdoc

Introduction

Esentially this is Facebox ( famspam.com/facebox ) for prototype.

It is designed to hook up to your a[rel=popupbox] tags and display whatever it is in their href in a fancy popup div.

Usage

Add in the <head> section of your page:

<script type="text/javascript">
  popupbox.preload();
</script>

Now this will happen:

<a href="#terms" rel="facebox">Terms</a>

Loads the #terms div in the box

<a href="terms.html" rel="facebox">Terms</a>

Loads the terms.html page in the box

<a href="terms.png" rel="facebox">Terms</a>

Loads the terms.png image in the box

License

In short - do whatever you want to and be happy. I hate legal stuff but if you are into it - it is GPL. For more information goto www.gnu.org/licenses/gpl.html

Something went wrong with that request. Please try again.