OSDN Git Service

初回コミット(v2.6.17.1)
[magic3/magic3.git] / widgets / dropdown_menu / include / template / index.tmpl.html
1 /**\r
2  * 表示データ作成用テンプレート(patTemplate)\r
3  *\r
4  * LICENSE: This source file is licensed under the terms of the GNU General Public License.\r
5  *\r
6  * @package    Magic3 Framework\r
7  * @author     平田直毅(Naoki Hirata) <naoki@aplo.co.jp>\r
8  * @copyright  Copyright 2006-2012 Magic3 Project.\r
9  * @license    http://www.gnu.org/copyleft/gpl.html  GPL License\r
10  * @version    SVN: $Id: index.tmpl.html 4945 2012-06-08 01:35:42Z fishbone $\r
11  * @link       http://www.magic3.org\r
12  */\r
13 <patTemplate:tmpl name="_widget">\r
14 <table {DEFAULT_MENU_PARAM}>\r
15   {TITLE}\r
16   <tr><td>\r
17   <ul id="{CSS_ID}" class="{CSS_CLASS}">\r
18   {MENU_HTML}\r
19   </ul>\r
20 </td></tr>\r
21 </table>\r
22 <script type="text/javascript">\r
23 //<![CDATA[\r
24 $(function(){\r
25         $('#{CSS_ID}').supersubs({ \r
26             minWidth:    10,   // minimum width of sub-menus in em units\r
27             maxWidth:    12,   // maximum width of sub-menus in em units\r
28             extraWidth:  1     // extra width can ensure lines don't sometimes turn over\r
29                                // due to slight rounding differences and font-family\r
30         }).superfish({\r
31                 animation: {height:'show'},   // slide-down effect without fade-in\r
32                 delay:     1200               // 1.2 second delay on mouseout\r
33         }).find('ul').bgIframe({opacity:false});\r
34 });\r
35 //]]>\r
36 </script>\r
37 </patTemplate:tmpl>\r