That would be some sort of javascript that would really be hard to explain. If you want to learn more about html, css, javascript, and other languages for the web, visit w3schools.com. They have great tutorials there on a lot of programming and markup languages.