CSS loop through hotspots
Posted on 2013-06-12
I've been writing C# winforms program for years but I know very little about html and nothing about CSS. Now I find I need some help.
I'll need complete html/css source from top to bottom please.
I'm building part of a web page from within my winforms program at run time.
I should not need an Internet connection for this to work.
I'll have an array of x1,y1,x2,y2 coordinates for hot-spots on an image.
I need to set all these hot-spots in relation to an image that can be moved around. So, the hot-spots need to be in relation to the image's top/left corner.
I'll need to have some sort of a relationship so when the user clicks on a hot-spot I can take some action just for that one hot-spot.
I'm hoping someone very knowledgeable about HTML and CSS can write something for looping through just a few hot-spots for me in a few minutes (at least I hope so).
If this cannot be done in a loop then please just an example of a few hot-spots.
Thank you. Very much appreciated.