jetviper21 / prototype-facebox
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (3)
- Graphs
-
Tree:
6f758f6
prototype-facebox / README
| 70647695 » | jetviper21 | 2008-10-14 | 1 | 1. include the facebox.js and facebox.css | |
| 2 | 2. move the images folder to www.you-domain/images | ||||
| 3 | 3. new features: | ||||
| 4 | * can resize the window and the lightbox will always stay centered. | ||||
| 5 | * light box automaticly figures out where center is. | ||||
| 6 | 4. to use: | ||||
| 7 | URL: <a href="http://url" rel='facebox'>MyLink</a> | ||||
| 8 | Image: <a href="/images/myimage.png" rel='facebox'>MyImage</a> | ||||
| 9 | Content on the page: <a href="#mydiv" rel="facebox">Mydiv</a> | ||||
| 10 | |||||
| 11 | |||||
| 12 | an example rails_helper | ||||
| 13 | |||||
| 14 | def facebox_link(name, url) | ||||
| 15 | link_to(name, url, :rel => "facebox") | ||||
| 16 | end | ||||
