Edit: Percentage approach is not working.
In this case, the only thing I see is as follows:
They have forms using percentage notation:
<area shape="rect" coords="0,0,0,0" mycoords="1%,3%,25%,29%">
At the first drawing and every window change:
analyze each area mycoords property
Divide percent by four integers.
Calculate percent based on .width() property
Set the coords area coords based on calculated pixel values
Not entirely trivial, but it should be halfway easily implemented by an experienced jQueryist.
Old answer:
Hm. So, do you have an image that needs to be resized dynamically?
I have never tried this myself, but what about using relative coordinates =
<area shape="rect" coords="1%,3%,25%,29%">
I don't know if this works, but it's worth a try.
source share