Facebox for prototype.js
JavaScript PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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 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