Understanding an underhood lamp

I used to have a sack full of the ones with mercury switches in em, they kinda walked off magically.