I\'m trying to resize an image map on window resize event. The closest I\'ve gotten is to use a mouseclick event, but it needs to be window resize for what I\'m doing. I\'m
To call a function when the window is resized, try the following:
$(window).bind('resize', function() { // resize the button here });
Also, line 37 is missing a dollar sign:
scaleXY('theMap',(window).width());
It should be:
scaleXY('theMap',$(window).width());