Taggd – 用于為圖片添加標簽的jQuery插件
Taggd 一個jQuery插件能夠幫助你在一張圖片上創建標簽。可以有彈出窗。
var options = { // Aligning the text popups align: { x: 'center', // left, center or right y: 'center' // top, center or bottom }, // The (relative) offset of the popups in pixels offset: { left: 0, // horizontal offset top: 12 // vertical offset }, // event handlers of the tags handlers: { // Any vanilla JavaScript event is a valid key click: function(e) { alert('You clicked a button'); this; // the DOM Node e; // the Event }, // For convenience, you can use strings to // show, hide and toggle the popups mouseenter: 'show', mouseleave: 'hide' } }; // The magic comes together here $('.taggd').taggd( options, data );

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