I have a task of dynamically generating HotSpots on an Image Map control. Below is the code snippet that accomplishes this:
// Creating a RectangleHotSpot programmatically.
RectangleHotSpot Rectangle1 = new RectangleHotSpot();
Rectangle1.Top = 50;
Rectangle1.Left = 10;
Rectangle1.Bottom = 200;
Rectangle1.Right = 200;
Rectangle1.NavigateUrl = "http://stackoverflow.com";
ImageMap1.HotSpots.Add(Rectangle1);
The above code is executed during PageLoad. Now, I am looking to change the color of the hotspot when a user hovers their mouse over it. Ideally, the color should become somewhat transparent. How can I achieve this effect?