引用jquery.maphilight.js之后,调用如下方法:

//obj参数是代表一个或者多个area的jQuery对象
function areaLight(obj)
{
    var data = $(obj).data('maphilight') || {};
    data.alwaysOn = !data.alwaysOn;
    $(obj).data('maphilight', data).trigger('alwaysOn.maphilight');
}

其他方案,使用ImageMapster的高亮方法highlight 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2021-05-28
  • 2021-04-22
  • 2021-05-21
  • 2022-01-26
  • 2021-10-28
猜你喜欢
  • 2022-12-23
  • 2021-04-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案