Assignment 3.5: Interactive XML

I managed to add the ability for the mouse to interact with the boxes, by changing their color, but it still isn’t tied to their location. The left click turns the boxes white while the right click turns them into a dark grey. I tried to add a function that made it detect where the mouse was, and it did, so that if it was pressing the range it would only change that box. That only worked on a single point and didn’t even change the box it was on. If anyone has any suggestions or advice as to what might be wrong with it in terms of selecting a box that would be helpful.