单击时无法调用Map SVG(Wordpress地图插件)的选择器 [英] Can not call Selector of Map SVG (Wordpress map plugin) when clicked

查看:195
本文介绍了单击时无法调用Map SVG(Wordpress地图插件)的选择器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MapSVG插件在Wordpress网站上工作.在这里是: http://www.wordpressdemo7.mozaikdesign.fr/

I am working on a Wordpress website with a MapSVG plugin. Here it is:http://www.wordpressdemo7.mozaikdesign.fr/

我的客户想要在单击地图区域时打开下面的特定选项卡.例如,当单击加里曼丹地区时,标签加里曼丹"将打开.

My client want to open specific tab bellow when click on an area of the map. For example, when click on Kalimantan area, the tab Kalimantan will be open.

问题是我无法选择单击区域.我使用了下面的代码,但是没有运气.

The problem is I can not select the clicked area. I used the code bellow but no luck.

jQuery(document).ready(function ($) {
      jQuery("a[href$=#tanjung]").click(function( event ) {
        event.preventDefault();
        jQuery("#tabbed-nav").data('zozoTabs').select(4);
      });
});

那么,有人可以帮助我解决这个问题吗?谢谢,也非常感谢.

So, can anyone help me out of this problem? Thank you and thank you very much.

推荐答案

插件作者的问候.您必须将其放入MapSVG控制面板内 javaScript 标签中的 onClick 事件处理程序中:

Greetings from plugin's author. You have to put it into onClick event handler in javaScript tab inside of MapSVG control panel:

function(){
  var regionID = this.id;
  if (regionID == "Kalimantan"){  
     jQuery("#tabbed-nav").data('zozoTabs').select(4);
  }
}

这篇关于单击时无法调用Map SVG(Wordpress地图插件)的选择器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆