Using x and y coordinates to find the position of the mouse's pointer
At this point, our slideshow is full of engaging images and has a rich user experience. We could stop here, but we're going to add one more wrinkle to our show by making the arrows hide and show based on the position of the mouse cursor. We'll build these scripts block by block, so even if the x and y coordinate system is a new concept for you, you'll still have a ready-made example to explore the concept some more.