I’m working on my blog and do not know how i can make a javascript which highlights some parts of my text and give further information. like:
I’m working on my PC
and if i click on pc there is a window and more informatin in a Jquery UI Dialog.
I tried it by myself, but i had to create a div for every information i wanted.
then i was able to open a box with
$(foo).dialog('open')
that is to much div i think. Could you provide me with an easy solution?
It is hard to say what you really need. for the next time you should provide more code… But i’ll give it a try: I do not know how you provide the highlight of your text, but i think this demo could help you.
HTML:
Javascript:
you highlight your text by a given
css classand with html5data-*attributes you can set detailed information.