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 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
转载本站原创文章,请注明出处,并保留原始链接、图片水印。
本站是一个以用户分享为主的开源技术平台,欢迎各类分享!