You'll need the pill bottle, E-6000 glue, Goo Gone, a nylon cord, and either a drill or a large screw. The glue holds the cord in place and also seals the hole you make in the cap.
Donatella, the blogger behind this project, has tested it as waterproof—at least for splashes and a quick swim. Hit up the link for the full tutorial.