Javascript Tooltip / Posts /

How to add tooltip to the web page content?

0
Where should I put this tooltip code in webpage. 
<span class="tooltip" onmouseover="tooltip.pop(this, 'Hi there')">hi</span>
Chitra  11 years ago   viewed: 5700    

1 Answer

0
Let's say you have the following words on your page, "what is Oracle", and you want it to pop tooltip when your audience is hovering on the words, then you can update the "what is Oracle" in your page as:
<span class="tooltip" onmouseover="tooltip.pop(this, 'Oracle is a database')">what is Oracle</span>

So my answer to your question is: 
Put the code to the content or the HTML element that has already been on your page from which you wish the tooltip to be triggered in respond to a client event such as onmouseover, onclick or onfocus, etc.

Is that clear?
Milo   11 years ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: