|
Project Information
Links
|
日本語ドキュメント:Twitterの Hover Cardを実装するjQueryプラグイン twttrFloatTip | 5509(+1) This is a jQuery plugin that display twitter user statuses on a tooltip like "Hover Card" that is twitter's official function. Demo and Download demo filesInstall1. Load twttrFloatTip.css, jQuery and twttrFloatTip.js<link type="text/css" rel="stylesheet" href="css/twttrFloatTip.css" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">google.load('jquery','1.4.2');</script>
<script type="text/javascript" src="js/twttrFloatTip.js"></script>2. Decide target elementsFollowing below code. Twitter username is gotten from target element's text.<a href="http://twitter.com/dotcoder" class="tw">dotcoder</a> 3. ExecutionExecution with $() method.jQuery(function($){
$('a.tw').twttrFloatTip();
});How to useWhen you move the cursor to target elements, TwttrFloatTip like "Hover Card" is displayed on above or below that one.To display this above or below of target elements, it depends on the position of cursor. Screen shots![]() Demo and Download demo filesSpec
Authornori @ 5509Special Thanks@rew @ rewish |