FloatBox 1.4.1
This Class supplies a simple light-box wrapper with a clean cross-browser design.
The Class was developed when working on one of my sites. It wasn't realy ment to be used for distrubiution but after finishing the work i thought it might actualy serve someone.
It supplies 4 different methods of wrapping content:
- A simple wrapper for any HTML element you might send it.
- An AJAX wrapper.
- An Image wrapper.
- An IFrame wrapper.
Details
- Author
- Arieh Glazer
- Current version
- 1.4.1
- GitHub
- arieh/FloatBox
- Downloads
- 10907
- Category
- Utilities
- Tags
- Report
- GitHub Issues
Releases
Dependencies
-
_self_/_current_:
- core/1.3: [Class, Class.Extras, Element,Element.Dimentions,Element.Event,Element.Style,Fx,Fx.Morph,Request.HTML]
- more/1.3: [Assets]
How to use
FloatBox
var div = new Element('div').appendText('example div');
new FloatBox(div,{size:{x:100,y:100}});
FloatBox.HTML
new FloatBox.HTML({
url : 'path/to/file.php',
boxOptions : {size:{x:150,y:100}}
});
FloatBox.Image
new FloatBox.Image('path/to/image.png');
FloatBox.IFrame
new FloatBox.IFrame('http://www.google.com');
For more info on the options and methods for each of the implementations see the docs.
Discuss
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.
blog comments powered by Disqus