:: Archive for February, 2006 ::

Multifaceted Lightbox

Posted on February 26th, 2006 in Web Development by Greg

What is it?

A script (JavaScript) that allows you to focus the users attention on a particular portion of the screen. It creates the equivalent of a modal dialog box – this means that while the user looks at this focused part of the screen, they can’t interact with the rest of the screen.

Inspirations

What is different about this version?

  • This version has 4 different types of data that can be loaded into the lightbox:
    • String: you can pass a simple string that will be loaded in the lightbox
    • Image: it can pickup the url of an image and load it inline in the lightbox
    • Local element: you can pass it the ID of an element on the page to be shown in the lightbox. When the lightbox is closed, the element will be hidden and added as the last element within the body
    • AJAX: content can be loaded from a URL with AJAX
  • Aside from the image version, you can specify the width and height of the lightbox when invoking it
  • If the dimensions of the lightbox are bigger than the user’s window, it will automatically shrink the size of the lightbox (for all except image lightbox)
  • The functions have all been put inside of a simple class to avoid function name clashes and encapsulate the functionality
  • This doesn’t automatically add the lightbox functionality to links with particular text in them (i.e. rel=”lightbox”)

Check it Out

View examples and download


Moved to new webhost

Posted on February 20th, 2006 in Uncategorized by Greg

I moved this site to a new webhost – Dreamhost. Be on the lookout for links that don’t work and other broken stuff – if you find anything please add a comment to this post to let me know and I’ll take care of it.

In the process of moving my stuff from my old host to the new one, I came to learn that my forum for gcards was somewhat hacked…so I’ve decided to take it down (i.e. not reinstall it) for the time being. I may setup Media Wiki in its place or find another forum alternative…

Greg

Nursing jokes…courtesy of Yenari

Posted on February 16th, 2006 in Uncategorized by Greg

“Top ten reasons to become a nurse”

1. Pays better than fast food, though the hours aren’t as good.
2. Fashionable shoes and cool uniforms
3. Needles: “Tis better to give than receive”
4. Reassure your patients that all bleeding stops…eventually
5. Expose yourself to rare, exciting new diseases
6. Interesting aromas
7. Courteous and infallible doctors who always leave clear orders in legible handwriting
8. Do enough charting to navigate around the world
9. Celebrate the holidays with your friends-at work
10. Take comfort that most of your patients survive no matter what you do to them

Just for fun…pregnancy dictionary

Artery…..the study of paintings
Bacteria…..the back door to the cafeteria
Benign……what you be, after you be eight
cauterize……made eye contact with her
Dilate……live long
enema…..not a friend
Fester…….qucker than someone else
Morbid……..a higher offer
Nitrates………cheaper than day rates
Outpatient….. a person who has fainter
Seizure……….roman emperor
Terminal Illness…….getting sick at the airport
Tumor……….one plus one more
Urine…….opposite of your out

Boys on Trial Live – Radio One Chicago

Posted on February 11th, 2006 in Music by Greg

My good friend Michael’s band Boys on Trial played a live set on Radio One in Chicago. Radio One has posted the entire set, and I’ve extracted the first song for your listening pleasure…so take a listen:

Boys on Trial – Coward or Hero

Or go ahead and download the entire set. They’re great.