How do you copy some picsel in memory?
-
How's it going with a picsel? For example, from the beginning of the browser, I'd press 10 picsel in height and 20 wide, and he'd copy to me "You pressed 10px (high) 20px in width."
It would be even better if, for each picsel, the text could be attached: 10px (height) 20px (width) was copyed "-100-200."
-
There's this element of shape:
<INPUT TYPE="IMAGE" SRC="..." HEIGHT="..." WIDTH="..." />
He can generate x,y in which the user stumbled, but what color does it say?
UPDATE:
This can be done (through jQuery):
<img src=".../map.gif" width="500" height="500" id="map" /> <script type="text/javascript"> var perPixel = (2950+2950)/500; function fromPixel (c) { if (c > 250) { c = c * perPixel; } else { c = - (c * perPixel); } return c; }
$("#map").click( function (e) { alert("Click on: " + fromPixel(e.clientX) + "," + fromPixel(e.clientY)); } );
</script>
Example http://jsfiddle.net/chernomyrdin/zKC7g/
The work with clipboard in javascript is a rather vague subject, and it's better discussed separately.
UPDATE 2:
Signs may be used
<map>
<img src=".../map.gif" width="500" height="500" usemap="#image-map" />
<map name="image-map">
<area shape="rect" coords="0,0,1,1" alt="10x10" title="10x10" />
<area shape="rect" coords="1,0,1,1" alt="20x10" title="20x10" />
...
</map>
But there might be a different processing system, like the generation of all the area at the javascript-a level and the attachment of processors.