Light Weight Light Box for Greasemonkey
On the train back up from barCamp, I was still feeling really in the mood for coding, so I decided to do something about my little flickr comment tools script that's actually pushing 300k. I ripped out all the YUI code and wrote my own simple dialog type popup/popover/lightbox type thing. It's really easy to use and is as accessible as I could make it, you can size your box in em's or what ever you like, it'll keep itself centered if the user scales their font. One thing I need to add is escape key to close it. It's not IE friendly at the moment. I wrote a work around for the lack of position:fixed using the scroll event but I've not put it in for now, I'll also need to set the opacity the IE way and do something about select boxes poking through (I don't want to use an iframe). Anyway, you can get the script here, this is what it looks like, and this is how you use it.
You can get the new flickr comment tools script here.
Tags:


Comment Feed

