jQuery Plugin Cantik untuk Tooltip

Namanya TipTip jQuery Plugin. Plugin ini sangat bagus dipakai untuk menampilkan tooltip. Lagi-lagi, plugin ini didesain oleh Drew Wilson.

Cara penggunaanya sangat mudah, berikut saya ambilkan dari websitenya.

Obviously you need to make sure you have the latest jQuery library already loaded in your page. After that it’s really simple, just add the following code to your page:

$(function(){
$(".someClass").tipTip();
});

Below is an example of using TipTip with some options:

$(function(){
$(".someClass").tipTip({maxWidth: "auto", edgeOffset: 10});
});

Below is an example of what your HTML would look like:

<p>
Cras sed ante. Phasellus in massa. <a href="" class="someClass" title="This will show up in the TipTip popup.">Curabitur dolor eros</a>, gravida et, hendrerit ac, cursus non, massa.
<span id="foo">
<img src="image.jpg" class="someClass" title="A picture of the World" />
</span>
</p>
Selamat mencoba…
Pos ini dipublikasikan di Developer dan tag . Tandai permalink.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s