Hi all, I'm using a plugin called jQuery image map emulator which takes parameters like so:
$('#example').imagemap([
{
top_x: 0,
top_y: 0,
bottom_x: 75,
bottom_y:65,
callback: alertCallback}
])
with multiple arrays possible:
$('#example').imagemap([
// One image map
{top_x: 0,top_y: 0,bottom_x: 75,bottom_y:65,callback: alertCallback},
// Another image map
{top_x: 150,top_y: 105,bottom_x: 265,bottom_y:170,callback: alertCallback}
]);
How would I go about dynamically adding more of of the parameters as necessary? Ideally I'd have one image map "set" and be able to add more as needed with new coordinates. Thanks!