There is a table with the same pictures depicting a switch.
function on() { alert('Switch ON'); } function off() { alert('Switch OFF'); } <map name=swm> <area shape=rect coords="0,0,40,40" href="javascript:on()" alt="on"> <area shape=rect coords="0,40,40,80" href="javascript:off()" alt="off"> </map> <table> <tr><th colspan=2>ΠΡΠ°Π²ΡΠΉ Π²ΡΠΊΠ»ΡΡΠ°ΡΠ΅Π»Ρ</tr> <tr><td class=dev><img src='sw.png' usemap='#swm' width=80 height=80></td> <td><code>β</code><small>2015-12-10</small></tr> <tr><th colspan=2>Π‘ΡΠ΅Π΄Π½ΠΈΠΉ Π²ΡΠΊΠ»ΡΡΠ°ΡΠ΅Π»Ρ</tr> <tr><td class=dev><img src='sw.png' usemap='#swm' width=80 height=80></td> <td><code>β</code><small>08:55:33</small></tr> <tr><th colspan=2>ΠΠ΅Π²ΡΠΉ Π²ΡΠΊΠ»ΡΡΠ°ΡΠ΅Π»Ρ</tr> <tr><td class=dev><img src='sw.png' usemap='#swm' width=80 height=80></td> <td><code>β</code><small>08:55:33</small></tr> <tr><th colspan=2>ΠΠΎΠΌΠΏΠ»Π΅ΠΊΡ Π΄Π°ΡΡΠΈΠΊΠΎΠ²</tr> <tr><td class=dev><img src='sn.png' width=80 height=80></td> <td><em>100lx</em><br> <em>20Β°C</em><br> <small>14:48:06</small></tr> </table> Is it possible, without reproducing a card for each picture, to distinguish which picture was clicked?