public
Description: facebox in prototype
Homepage: http://www.goonquest.com/blog/
Clone URL: git://github.com/jetviper21/prototype-facebox.git
name age message
file README Loading commit data...
directory examples/ Thu Jan 08 11:29:18 -0800 2009 removed console loging methods from debuging th... [jetviper21]
file facebox.css Tue Oct 14 11:24:25 -0700 2008 added files [jetviper21]
file facebox.js
directory images/
1. include the facebox.js and facebox.css
2. move the images folder to www.you-domain/images
3. new features:
  * can resize the window and the lightbox will always stay centered.
  * light box automaticly figures out where center is.
4. to use:
URL: <a href="http://url" rel='facebox'>MyLink</a>
Image: <a href="/images/myimage.png" rel='facebox'>MyImage</a>
Content on the page: <a href="#mydiv" rel="facebox">Mydiv</a>


an example rails_helper

def facebox_link(name, url)
  link_to(name, url, :rel => "facebox")
end