kemayo / maphilight

jQuery plugin that adds highlighting to image maps
http://davidlynch.org/projects/maphilight/docs/
MIT License
491 stars 278 forks source link

Working? #69

Closed thecheshirecat closed 8 years ago

thecheshirecat commented 8 years ago

Hi,

I've downloaded the plugin, and tried to do a simple map, but they don't high light.

Demo: https://jsfiddle.net/hnjqf1n2/2/

Something wrong within it?

kemayo commented 8 years ago

The error it has in the console is Uncaught TypeError: $(...).maphilight is not a function

Thus: you're not using the right URL for the maphilight JS file. You're just linking to the page on github, which isn't going to work. You'd have a better time if you used something like https://rawgit.com/kemayo/maphilight/master/jquery.maphilight.min.js

thecheshirecat commented 8 years ago

Ok, but in my pc I download it, no errors are given and it doesnt highlight, with that exact code

kemayo commented 8 years ago

Well, here, version of the fiddle using that URL instead: https://jsfiddle.net/urfp7asv/

It works.