【发布时间】:2014-09-06 12:29:53
【问题描述】:
我在使用看似简单的插件时遇到了问题:https://github.com/kemayo/maphilight
我尝试了无数的事情,并不断从我在 main.js 中的一行代码中得到:Uncaught TypeError: undefined is not a function。
我正在使用最新的稳定版本的 jquery 和 maphilight。
main.html:
<body>
<img class="img_map" usemap="#regional_map">
<map name="regional_map">
<area ...... />
<area ...... />
</map>
<script src="js/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="js/jquery.maphilight.js" type="text/html"></script>
<script src="js/main.js" type="text/javascript"></script>
</body>
main.js:
$(".img_map").maphilight();
【问题讨论】:
-
也帮了我and also this
标签: javascript jquery imagemap