今天給大家分享一款基於jQuery的圖片場景標注提示彈窗特效,這款實例適合在圖片上標注某個物件,單擊彈出詳情說明,兼容360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗,不支持IE8及以下浏覽器。效果非常不錯。效果如下:
實現的過程。
這款實例要引用jquery和jquery ui庫,還有一個實現的main.js庫。需上的朋友可以點擊上現的下載按鈕下載來看看。
html代碼部分:
代碼如下:
<div class="container">
<div class="labels">
<a id="label1" class="label" href="#">Sofa
<p>
A sofa, is an item of furniture designed to seat more than one person, and providing
support for the back and arms.</p>
<span /></a><a id="label2" class="label" href="#">Television
<p>
Television (TV) is a telecommunication medium for transmitting and receiving moving
images that can be monochrome (black-and-white) or colored, with or without accompanying
sound.</p>
<span /></a><a id="label3" class="label" href="#">Carpet
<p>
Carpet is a textile floor of an upper layer attached to a backing.</p>
<span /></a><a id="label4" class="label" href="#">Chair
<p>
Chair is an item of furniture designed to seat one person, and providing support
for the back and arms.</p>
<span /></a><a id="label5" class="label" href="http://www.5icool.org/">Showcase
<p>
Showcase is used to showcase things at home</p>
<span /></a>
</div>
<div class="description">
<p>
</p>
<a class="close">X</a></div>
</div>