jQuery 提示框插件:Tipso
Tipso是一款基于jQuery的Tooltip提示框插件,他提供了眾多參數,如顯示動畫持續時間、背景顏色、文本顏色、顯示位置、加載ajax內容、回調函數等等。
// Show the tipso tooltip
$('.tipso').tipso('show');
// Hide the tipso tooltip
$('.tipso').tipso('hide');
// Destroy tipso tooltip
$('.tipso').tipso('destroy');
// Add a callback before tipso is shown
$('.tipso').tipso({
onBeforeShow: function(){
// Your code
}
});
// Add a callback when tipso is shown
$('.tipso').tipso({
onShow: function(){
// Your code
}
});
// Add a callback when tipso is hidden
$('.tipso').tipso({
onHide: function(){
// Your code
}
});
// Load AJAX content to tipso
$('.tipso').tipso({
useTitle: false,
ajaxContentUrl : 'ajax.html'
});
// Update tipso options
$('.tipso').tipso('update', 'content', 'new content');

本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!