How do you make a bridge that opens and closes in Minecraft?

How do you make a bridge that opens and closes in Minecraft?

See also  What is the prize for winning the Stock Market Game?