简体   繁体   English

将鼠标悬停在addthis和sharethis之类的弹出窗口上吗?

[英]Mouse over popup like addthis and sharethis?

does any one know how to create a mouse over popup like addthis.com and sharethis.com?? 有谁知道如何在addthis.com和sharethis.com这样的弹出窗口上创建鼠标? it should popup exactly on a button. 它应该完全弹出一个按钮。 and moreover it does not have anything inserted into Head tag.can be attached javascript with that link between body tag but not in head. 而且它没有任何内容插入Head标签。可以将javascript与body标签之间的链接附加在一起,但不在head中。

any Ideas, Sample code?? 任何想法,示例代码?

If you mean the drop down menu then this is it. 如果您的意思是下拉菜单,那么就是它。

<div id="menu">
  <div id="label">
     Share It!
  </div>
  <div id="list">
       <div>Item 1</div>
  </div>
</div>

<script>
$(document).ready(function (){
  $('#list').hide();
  $('#label').hover(function (){
      $('#list').show(500);
    },function(){
      $('#list').hide(0);
    }
  );
});
</script>

Put that any where and a menu like will come up copy and paste "item 1" if you need more and you can customise it as well. 把它放在任何地方,如果需要的话,会出现类似菜单的副本并粘贴“项目1”,也可以对其进行自定义。 If you don't know how to do it. 如果您不知道该怎么做。 I would suggest you start studying HTML,CSS, and JavaScript and finally JQuery a little more. 我建议您开始学习HTML,CSS和JavaScript,最后再学习JQuery。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM