Created
August 17, 2012 07:40
-
-
Save hpcx82/3376807 to your computer and use it in GitHub Desktop.
bootstrap's popover plugin, hold the tip until move leave.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head language="en"> | |
<meta charset="utf-8"> | |
<title> bootstrap testing</title> | |
<link href="bootstrap/css/bootstrap.css" rel="stylesheet"> | |
<script src="jquery-1.7.2.js"> </script> | |
<script src="bootstrap/js/bootstrap.js"> </script> | |
<style type="text/css"> | |
.myClass{ position: relative;} | |
</style> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$('#example').popover({ | |
placement: 'in right', | |
trigger: 'hover', | |
delay: { show: 500, hide:100 }, | |
content: $('#examplecotent').html() | |
}) | |
}) | |
</script> | |
<br/> | |
<br/> | |
<br/> | |
<br/> | |
<br/> | |
<br/> | |
<br/> | |
<a class="myClass" id="example" data-original-title="A Title"> Hello </a> | |
<div id="examplecotent" class="hide"> | |
<a href="#">bundle 1</a> <br/> | |
<a href="#">bundle 2</a> <br/> | |
<a href="#">bundle 3</a> | |
</div> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment