N
N
nevatas2015-03-25 19:24:21
JavaScript
nevatas, 2015-03-25 19:24:21

How to make a simple mark on an image?

Hello, you need to make a simple mark on the image.
Example: I
32c1d38d1dc8415b8391502784f0c85d.jpg

found a plugin ( demo ) for jquery on the Internet, which basically implements what I need, but this plugin has a lot of dependencies (imgViewer, zoetrope, toe, mousewheel), as well as apparently an excess of chips. I only need a label on the image, and the ability to execute a function when clicking on it. Are there ready-made "easy" solutions? Or how to bike like that?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita K., 2015-03-26
@nevatas

Well here is an easy solution without any plugins.
jsfiddle.net/bonilka/p09f8zt2

C
Centrino, 2015-03-25
@Centrino

Here I recommend playing with css, adding a
hello 1 element ( sup class="counter">1)
to the image and finding it in a certain place.
Hide the counter if it is zero, and hang an event on it when clicked.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question