Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

We have an old site that was are migrating to drupal. On the old site we have an image map: http://www.seguridadidl.org.pe/districts.html

Wondering if there is a more dynamic way of adding an image map such as this to drupal, rather than just adding the html in a node.

Does the "onMouseOver" work in Drupal?

share|improve this question
1  
what do you mean by "Does the "onMouseOver" work in Drupal"? – Aboodred1 Apr 24 at 22:36

1 Answer

An imagemap is just a set of coordinates that map a mouseover to an area in your map.

A quick google and I dont see any Drupal related imagemap modules. You could try to store coordinates as a field in your node. But, that sounds messy. An imagemap basically assumes a user has intimate knowledge of the image to properly build the coordinate sets.

onMouseOver is a Javascript event. HTML, CSS, the HTTP protocol, Javascript all work together to power the internet nowadays; so of course you can use Javascript code in a Drupal website. Drupal is simply a PHP CMS making use of all these things ... So long as the client browser supports it -- you're fine.

share|improve this answer
I have a related question: drupal.stackexchange.com/questions/72313/… – islalobo May 7 at 16:13
There is a jQuery maphilight module out there that we are using for this issue – islalobo May 7 at 16:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.