ဆက္ျပီးမွ်ေဝေပးလိုက္ပါတယ္။ၾကိဳက္ၾကမယ္လို႕ေတာ့ထင္တာပါဘဲေအာက္မွာထည့္နည္းနဲ႕တကြပံုျပထားေပးပါတယ္။ဘေလာ့မိတ္ေဆြအားလံုးကိုအျမဲခင္မင္လွ်က္ေကပီသရီးမိသားစု
၁။Design
၂။Edit HTML
၃။ေအာက္က Code ကိုရွာပါ၊
- </head>
- <link href='http://yui.yahooapis.com/2.3.0/build/tabview/assets/tabview.css' rel='stylesheet' type='text/css'/>
- <link href='http://yui.yahooapis.com/2.3.0/build/tabview/assets/border_tabs.css' rel='stylesheet' type='text/css'/>
- <script src='http://yui.yahooapis.com/2.3.0/build/yahoo-dom-event/yahoo-dom-event.js' type='text/javascript'/>
- <script src='http://yui.yahooapis.com/2.3.0/build/element/element-beta-min.js' type='text/javascript'/>
- <script src='http://yui.yahooapis.com/2.3.0/build/tabview/tabview-min.js' type='text/javascript'/>
- <style type='text/css'>
- .yui-content { padding:1em; /* pad content container */
- }
- .yui-navset .yui-content {
- border:1px solid #111111;
- }
- .yui-navset .yui-nav .selected a, .yui-navset .yui-nav a:hover {
- background-color:#fff2dd;
- }
- .yui-navset .yui-nav li a {
- background:#f3e7d2 url(http://developer.yahoo.com/yui/examples/tabview/img/round_4px_trans_gray.gif) no-repeat;
- }
- .yui-navset .yui-nav li a em {
- background:transparent url(http://developer.yahoo.com/yui/examples/tabview/img/round_4px_trans_gray.gif) no-repeat top right;
- padding:0.5em;
- }
- /* top oriented */
- .yui-navset-top .yui-nav { margin-bottom:-21px; } /* for overlap, based on content border-width */
- .yui-navset-top .yui-nav li a {
- border-bottom:2px solid #ccc;
- }
- .yui-navset-top .yui-nav .selected a { border-bottom:0; }
- .yui-navset-top .yui-nav .selected a em { padding-bottom:0.6em; } /* adjust height */
- </style>
၅။ေနာက္တဆင့္ကေတာ့Design>>>Add a Gadget>>>>HTML/JavaScript Add မွာေအာက္က Code ကိုထည့္ေပးလိုက္ပါ။
- <div id="demo" class="yui-navset">
- <ul class="yui-nav">
- <li><a href="#tab1">Tab1ရဲ႕အမည္ေရးရန္
- <li class="selected"><a href="#tab2">Tab2ရဲ႕အမည္ေရးရန္
- <li><a href="#tab3">Tab3ရဲ႕အမည္ေရးရန္
- <li><a href="#tab4">Tab4ရဲ႕အမည္ေရးရန္
- </ul>
- <div class="yui-content">
- <div id="tab1">ဒီမွာtab-၁ရဲ႕ကုဒ္ထည့္ေပးပါ
- <div id="tab2">ဒီမွာtab-၂ရဲ႕ကုဒ္ထည့္ေပးပါt
- <div id="tab3">ဒီမွာtab-၃ရဲ႕ကုဒ္ထည့္ေပးပါ
- <div id="tab4">ဒီမွာtab-၄ရဲ႕ကုဒ္ထည့္ေပးပါ
- </div>
- </div>
- <script>
- (function() {
- var tabView = new YAHOO.widget.TabView('demo');
- YAHOO.log("The example has finished loading; as you interact with it, you'll see log messages appearing here.", "info", "example");
- })();
- </script>
- //kp3family.blogspot.com-->
No comments:
Post a Comment