admin管理员组文章数量:1434949
I noticed on Facebook recently, that to introduce its new features, a callout appeared for the various new features (6 of them). The callout appeared on the left to identify the first feature. As you "X"ed it out, the next callout appeared to highlight the next feature, and so on. This was awesome, so I wanted to add this feature to my site. Is there a plugin available just for the callout part, which I can show, hide, and reposition?
Thanks.
I noticed on Facebook recently, that to introduce its new features, a callout appeared for the various new features (6 of them). The callout appeared on the left to identify the first feature. As you "X"ed it out, the next callout appeared to highlight the next feature, and so on. This was awesome, so I wanted to add this feature to my site. Is there a plugin available just for the callout part, which I can show, hide, and reposition?
Thanks.
Share Improve this question asked Mar 4, 2012 at 19:59 Brian MainsBrian Mains 50.7k35 gold badges155 silver badges260 bronze badges 3- 4 I am not facebook user, os perhaps you want to include a screenshot of what you mean? How about qTip craigsworks./projects/qtip2 – d_inevitable Commented Mar 4, 2012 at 20:02
- @d_inevitable Yes, that's a good one, will look into, thanks. – Brian Mains Commented Mar 5, 2012 at 0:55
- possible duplicate of jquery library for callout – Alex Angas Commented Mar 4, 2014 at 4:31
3 Answers
Reset to default 2There are several jQuery plugins that do that effectively. Here are some that e to mind:
- Meow
Google for growl-like notifications for more, there's plenty around.
I ended up going for QTip 2: http://craigsworks./projects/qtip2, as @d_inevitable mentioned.
I have created a plugin that will allow you to do just this. You can find it there: https://github./devmnrj/myAlert
Here is a little JS code demo:
<script type="text/javascript">
var myAlert = new MyAlert();
window.onload = function(){
$("#anchor").on("click", function(e){
myAlert.show({'x':e.pageX, 'y':e.pageY}, {
'header': "<em>Hello!</em><br/><small>I am a header</small>",
'body': "I am the body of the dialog, so i should be bigger. Yeah, more text here. I can also update me <a>here</a>.",
'footer': "footer: goodbye!"
});
});
};
</script>
本文标签: javascriptProgrammable Callout JQuery PluginStack Overflow
版权声明:本文标题:javascript - Programmable Callout JQuery Plugin - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745629734a2667196.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论