JavaScript image map alternative (maybe in javascript?)

Map tag would be good and it is not actually heavyweight as it does not require any external plug-ins. However, since you just want a general idea: Once due to some error, I wasn't able to use map tag. So I split the original image into different images (positioned them as the original image was) and then used events on separate parts. Tiresome, but a workaround.

Answer:1

Circles are easy to do with CSS. You can start with something like this :

width: 140px;
height: 140px;
background: rgba(255, 0, 0, 0.3);
-moz-border-radius: 70px;
-webkit-border-radius: 70px;
border-radius: 70px;

FIDDLE

Hope it help.

Answer:2

It's difficult for me to achieve that white shape in the middle, but here's a simple try:

http://jsfiddle.net/w8zTz/

Only with three div and a few css:

HTML

<div class="rojo"></div>
<div class="azul"></div>
<div class="amar"></div>

CSS

div {width:100px; height:100px; border-radius:100px; position:absolute; opacity:0.5;}
.rojo {background:red; top:0; left:30px;}
.azul {background:cornflowerblue; top:60px; left:0;}
.amar {background:gold; top:60px; left:70px;}
div:hover {opacity:1; z-index:-1}

(Z-index is for stack the div behind the other and reach transparency).

Hope this helps :)

Answer:3

I have a web application that uses requirejs to load its modules. The web applications works without problems in any desktop browser, it also works on iOS and Android when packaged with Cordova. Does ...

I have a web application that uses requirejs to load its modules. The web applications works without problems in any desktop browser, it also works on iOS and Android when packaged with Cordova. Does ...

I'm trying to get the coordinates of the Circle drawing in ol 3.5. I use the evt.coordinate function to get the coordinates, but I keep getting undefined. Here's a piece of my code: this....

I'm trying to get the coordinates of the Circle drawing in ol 3.5. I use the evt.coordinate function to get the coordinates, but I keep getting undefined. Here's a piece of my code: this....

I'm generating a file dynamically in php like this : $attachment_url = "http://www.mysite.com/file.jpg"; header('Pragma: public'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-...

I'm generating a file dynamically in php like this : $attachment_url = "http://www.mysite.com/file.jpg"; header('Pragma: public'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-...

  1. force file download php
  2. force file download html
  3. force file download instead of opening in browser
  4. force file download javascript
  5. force file download not open in browser
  6. force file download
  7. force file download js
  8. force file download laravel
  9. force file download wordpress
  10. force file download vue
  11. force file download nginx server
  12. force file download content-disposition
  13. force file download link
  14. force file download sharepoint
  15. force file download chrome
  16. force file download node
  17. force file download ajax
  18. force file download dropbox
  19. force file download http
  20. force file download ios

I have a user control having a hidden field that gets set on the node click of a Tree View Hierarchy control. The underlying function for the click event of the Tree View is: function OnTreeClick(evt)...

I have a user control having a hidden field that gets set on the node click of a Tree View Hierarchy control. The underlying function for the click event of the Tree View is: function OnTreeClick(evt)...

  1. hidden field values javascript
  2. hidden field values
  3. hidden field multiple values
  4. clear hidden field values
  5. form hidden field value
  6. jotform clear hidden field values
  7. javascript get hidden field values
  8. how to get hidden field values in jquery
  9. html hidden field multiple values
  10. html hidden field assign values
  11. hidden_field_tag value
  12. rails hidden_field value