treehouse : what would you like to learn today?
Web Design Web Development iOS Development

How Do i Apply The Same External JavaScript File To Different Elements, And Different Results.

  • Basically what i'm asking for is how can i apply the same functions of an external Javacript file, to multiple images each loading a different image? You can better see what i mean by looking Here if you click on the first image a pop-up appears. I want the pop-up to appear when clicking the other images, but i want it to load a different image corresponding to the one clicked.