简体   繁体   中英

Mouse over popup like addthis and sharethis?

does any one know how to create a mouse over popup like addthis.com and 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.

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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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