I would like to make a calculator using real image or more of them in html css and javascript. Is there any suggestion on how to do that? Should I use something like image mapping or cut it in photoshop then connect it like a puzzle?
(The question is only about the interface. To be precise, the question is how to empower buttons and display)
2
Answers
It’s best cu cut them in photoshop so you can bind javascript events on each image separately.
Otherwise you would have to compute x, y position of the click to know which button was clicked.
Better still is if you can style the buttons with only css. For a calculator it shouldn’t be very hard, depending on the design.
Well you can use background-position property and use only one image.
and so on for each button/div.
Here’s an example