Javascript Tooltip / Posts /

Make the Ajax Tooltip SEO friendly


The Menucool Tooltip supports Ajax that will retrieve tooltip content from external files. Make it SEO friendly (forcing the tooltip content crawlable) is quite simple here. Just add a real link to the file as follows:

<a href="foo.txt" onclick="tooltip.ajax(this, 'foo.txt'); return false;">foo</a>

When the linked is clicked, the tooltip will be populated. The "return false" will cancel next href navigation to the foo.txt, but Google, Bing, ... will following the link and have the content crawled.

If your tooltip needs to be populated through the onmouseover event, you can do it this way:

<a href="foo.txt" onmouseover="tooltip.ajax(this, 'foo.txt');" onclick="return false;">foo</a>

Milo  12 years ago   viewed: 11218    


Your name*
(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: