Membuat Pop-up Balloon Tooltip | Buku Catatan si Ugi

Pop-up Balloon Tooltip ini dapat menampilkan informasi suatu situs web dengan beberapa cuplikan informasi, termasuk menampilkan tiga referensi link yang berada dalam situs web tersebut.

Metode ini didasarkan pada drop-down dan menu flyout dimana Internet Explorer dapat mendefinisikan sebuah link dengan menggunakan tabel.


Demo Pop-up Balloon Tooltip

Hover mouse ke salah satu thumbnail halaman web berikut ini:


More Detail:
Terlebih dahulu silahkan Download Gambar untuk membuat Pop-up Balloon Tooltip ini disini.
Kemudian hosting gambar, sehingga anda dapat menggunakan URL gambar-gambar tersebut, yang akan anda letakan didalam Kode CSS berikut ini:
Kode CSS Pop-up Balloon Tooltip :

<style type="text/css">

/* ================================================================
This copyright notice must be untouched at all times.

The original version of this stylesheet and the associated (x)html
is available at http://www.cssplay.co.uk/menu/balloons.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This stylesheet and the assocaited (x)html may be modified in any
way to fit your requirements.
=================================================================== */

/* common styling */
.balloon {
font-family: verdana, sans-serif;
width:500px;
height:350px;
margin:50px 125px;
}
.balloon ul {
padding:0;
margin:0;
border:0;
list-style-type: none;
}
.balloon ul li {
float:left;
margin:5px;
width:150px;
height:150px;
border:1px solid #000;
}
.balloon ul li a, .balloon ul li a:visited {
display:block;
text-decoration:none;
color:#000;
width:150px;
height:150px;
color:#000;
background:#fff;
}
.balloon ul li a img, .balloon ul li a:visited img {
border:0;
}

.balloon ul li dl {
visibility:hidden;
position:absolute;
}

table {
margin:-2px;
border:0;
padding:0;
border-collapse:collapse;
font-size:1em;
}

.balloon dl {width:200px; padding:0 0 20px 0; background:transparent url(../sites/bottom.gif) no-repeat bottom left; height:auto;}
.balloon dt {margin:0; padding:5px; font-size:1.4em; font-weight:bold; color: #000; background:transparent url(../sites/top.gif) no-repeat top left; text-align:center;}
.balloon dd {margin:0; padding:5px 15px; color:#000; font-size:1em; border:1px solid #000; border-width:0 1px; background:#fff url(../sites/info.gif) no-repeat bottom right;}
.balloon dd p {padding:0; margin:10px 0; line-height:1.5em;}
.balloon dl#web2 {background:transparent url(../sites/bottom2.gif) no-repeat bottom left; height:auto;}
.balloon dl#web3 {background:transparent url(../sites/bottom3.gif) no-repeat bottom left; height:auto;}
.balloon dl#web4 {background:transparent url(../sites/bottom4.gif) no-repeat bottom left; height:auto;}
.balloon dl#web5 {background:transparent url(../sites/bottom5.gif) no-repeat bottom left; height:auto;}
.balloon dl#web6 {background:transparent url(../sites/bottom6.gif) no-repeat bottom left; height:auto;}
.balloon dl#web2 dt {background:transparent url(../sites/top2.gif) no-repeat top left;}
.balloon dl#web3 dt {background:transparent url(../sites/top3.gif) no-repeat top left;}
.balloon dl#web4 dt {background:transparent url(../sites/top4.gif) no-repeat top left;}
.balloon dl#web5 dt {background:transparent url(../sites/top5.gif) no-repeat top left;}
.balloon dl#web6 dt {background:transparent url(../sites/top6.gif) no-repeat top left;}

/* specific to non IE browsers and IE7 first with IE5.5 and IE6 second */
.balloon ul li:hover,
.balloon ul li a:hover {
color:#000;
position:relative;
cursor: pointer;
cursor:hand;
}

.balloon ul li:hover dl,
.balloon ul li a:hover dl {
visibility:visible;
color:#000;
top:-75px;
left:120px;
cursor:default;
}

.balloon ul li:hover dl em,
.balloon ul li a:hover dl em {
display:block;
position:absolute;
left:-35px;
top:75px;
width:36px;
height:36px;
background:transparent url(../sites/pointer.gif);
}

.balloon ul li:hover dl a,
.balloon ul li a:hover dl a {
height:0.8em;
color:#606;
background:transparent;
text-decoration:underline;
display:inline;
}

.balloon ul li:hover dl a:hover,
.balloon ul li a:hover dl a:hover {
text-decoration:none;
background:transparent;
}

</style>

Keterangan:
Silahkan masukan URL Gambar-Gambar yang sudah di hosting tersebut menggantikan Text yang sudah diberi warna, sesuai dengan namanya masing-masing.

Setelah selesai memasukan Gambar sesuai dengan nama dan urutanya, anda dapat meletakan kode CSS tersebut kedalam tag <head> template anda dan untuk memasang Pop-up Balloon Tooltip ini, anda dapat menggunakan Kode HTML seperti contoh berikut ini:
Kode HTML Pop-up Balloon Tooltip :

<div class="balloon">
<ul>
<li><a href="http://www.fadtastic.net/"><img src="https://sites.google.com/site/archivesiugi/javascr/fadtastic.jpg" alt="fadtastic" title="fadtastic" /><!--[if IE 7]><!--></a><!--<![endif]-->
<table><tr><td>
<dl id="web1">
<dt>fadtastic</dt>
<dd>
<p>Fadtastic - The Multi-Author Web Design Trends Journal. Web design trends discussed.</p>
<a href="http://www.fadtastic.net/">fadtastic</a><br />
<a href="http://www.fadtastic.net/archives/">archive</a><br />
<a href="http://fadtastic.net/?feed=rss2 ">RSS Feed</a><br />
<em></em>
</dd>
</dl>
</td></tr></table>
<!--[if lte IE 6]>
</a>
<![endif]-->
</li>
<li><a href="http://www.attitudedesign.co.uk/"><img src="https://sites.google.com/site/archivesiugi/javascr/attitude.jpg" alt="Attitude Design" title="Attitude Design" /><!--[if IE 7]><!--></a><!--<![endif]-->
<table><tr><td>
<dl id="web2">
<dt>Attitude Design</dt>
<dd>
<p>Attitude Design is a resource for graphic designers. Beauty is only skin
deep... Attitude is in the bones...
</p>
<a href="http://www.attitudedesign.co.uk/journal/">journal</a><br />
<a href="http://www.attitudedesign.co.uk/">website</a><br />
<a href="http://www.attitudedesign.co.uk/journal/?feed=rss2">Rss feed</a><br />
<em></em>
</dd>
</dl>
</td></tr></table>
<!--[if lte IE 6]>
</a>
<![endif]-->
</li>
<li><a href="http://www.jack-russell-terrier.co.uk/"><img src="https://sites.google.com/site/archivesiugi/javascr/russell.jpg" alt="Jack Russell Terriers" title="Jack Russell Terriers" /><!--[if IE 7]><!--></a><!--<![endif]-->
<table><tr><td>
<dl id="web3">
<dt>Jack Russell Terrier</dt>
<dd>
<p>A fun and informative look at the Jack Russell breed</p>
<a href="http://www.jack-russell-terrier.co.uk/">Web site</a><br />
<a href="http://www.jack-russell-terrier.co.uk/photos/photo_gallery_puppies.htm">Photos</a><br />
<a href="http://www.jack-russell-terrier.co.uk/the_breed/parson_jack_russell.htm">Parson Jack Russell</a><br />
<em></em>
</dd>
</dl>
</td></tr></table>
<!--[if lte IE 6]>
</a>
<![endif]-->
</li>
<li><a href="http://www.rubytuesday.com/"><img src="https://sites.google.com/site/archivesiugi/javascr/ruby.jpg" alt="Ruby Tuesday" title="Ruby Tuesday" /><!--[if IE 7]><!--></a><!--<![endif]-->
<table><tr><td>
<dl id="web4">
<dt>Ruby Tuesday</dt>
<dd>
<p>Ruby Tuesday is a company full of flavor as well as attitude, history and growth. </p>
<a href="http://www.rubytuesday.com/">Web site</a><br />
<a href="http://www.rubytuesday.com/locations.asp">Location</a><br />
<a href="http://www.rubytuesday.com/commercials.asp">Commercials</a><br />
<em></em>
</dd>
</dl>
</td></tr></table>
<!--[if lte IE 6]>
</a>
<![endif]-->
</li>
<li><a href="http://www.digroup.ca/"><img src="https://sites.google.com/site/archivesiugi/javascr/toronto.jpg" alt="DIGroup" title="DIGroup" /><!--[if IE 7]><!--></a><!--<![endif]-->
<table><tr><td>
<dl id="web5">
<dt>DIGroup</dt>
<dd>
<p>The Digital Impressions Group is an integrated communications company.</p>
<a href="http://www.digroup.ca/">Web site</a><br />
<a href="http://www.digroup.ca/about_us">About</a><br />
<a href="http://www.digroup.ca/resources">Resources</a><br />
<em></em>
</dd>
</dl>
</td></tr></table>
<!--[if lte IE 6]>
</a>
<![endif]-->
</li>
<li><a href="http://www.waltsbikeshop.com/"><img src="https://sites.google.com/site/archivesiugi/javascr/walt.jpg" alt="Walt's Bikeshop" title="Walt's Bikeshop" /><!--[if IE 7]><!--></a><!--<![endif]-->
<table><tr><td>
<dl id="web6">
<dt>Walt's Bikeshop</dt>
<dd>
<p>All of your adventures can start with Walt's Bicycle, Fitness, and Wilderness Company.</p>
<a href="http://www.waltsbikeshop.com/">Web site</a><br />
<a href="http://www.waltsbikeshop.com/about/history.php">History</a><br />
<a href="http://www.waltsbikeshop.com/cycling/">Cycling</a><br />
<em></em>
</dd>
</dl>
</td></tr></table>
<!--[if lte IE 6]>
</a>
<![endif]-->
</li>
</ul>
</div>
</div> <!-- end of info -->

Silahkan gunakan contoh Kode HTML tersebut untuk membuat Pop-up Balloon Tooltip, anda dapat memasangnya kedalam tag <body> atau dimanapun sesuai dengan keinginan anda.

Selesai...
sumber: cssplay




0 komentar:

Post a Comment



Catatan :

Untuk menyisipkan gambar kedalam komentar, gunakan tag : [img]URL_Gambar[/img]
atau <i rel="image">URL_Gambar</i>
Untuk Video Youtube : [youtube]URL_Video[/youtube]
atau <i rel="youtube">URL_Video</i>
Untuk "Kutipan", gunakan : [blockquote]Kutipan_Anda[/blockquote]
atau <b rel="quote">Kutipan_Anda</b>
Untuk menyisipkan Kode: [code]KODE[/code]
atau <i rel="code">KODE</i>
atau <i rel="pre">KODE</i>
Dan untuk menyisipkan smiles/ emoticon, lihat kode Emoticon







 

Anda sudah mengaktifkan penyaringan konten ( AdBlocker di Aktifkan )

Mohon maaf untuk sementara Anda tidak dapat melihat halaman ini, silahkan kembali lagi setelah Anda menonaktifkan filter yang Anda gunakan. Abaikan