← ဘလော့ဂ်သို့ ပြန်ရန်

Tree View Widget ထည့်ခြင်း

How to

အကယ်၍ အထက်ပါ ပုံအတိုင်း Tree View လုပ်ချင်တယ် ဆိုရင်ဖြင့်အဆင့်(၁)Layout မှ Edit Html ကိုရွေး၍ အောက်တွင် ဖော်ပြထားသော ကုဒ်ကို <Head> …. </Head> ကြားတွင် အရင် ထည့်ပေးပါ။

<link href=’http://thebloggerguide.googlepages.com/dtree.css’ rel=’StyleSheet’ type=’text/css’/>
<script src=’http://thebloggerguide.googlepages.com/dtree.js’ type=’text/javascript’/>

အဆင့် (၂)Layout ၏ Page Elements မှ Add a Page Element ကိုနှိပ်၍ Html/Javascript ကို ရွေးပါ။အောက်တွင် ဖော်ပြထားသော ကုဒ်ကို ကူးထည့်ပါ။ပေါ်လိုသော စာများကို ကုဒ်တွင် မိမိအလိုကျ ပြင်ဆင်နိုင်ပါသည်။

<div class=”dtree”>

<p><a href=”javascript: d.openAll();”>open all</a> | <a href=”javascript: d.closeAll();”>close all</a></p>
<script type=”text/javascript”>

<!–

d = new dTree(‘d’);

d.add(0,-1,’Favorite Articles’);

d.add(1,0,’3 Columns’);
d.add(2,1,’3 Columns Explained’,’http://bguide.blogspot.com/2008/02/three-column-templates-explained.html’);
d.add(3,1,’Skeleton of a Template’,’http://…’);
d.add(4,1,’Adding a Third Column’,’http://…’);
d.add(5,1,’Layout Wire Frame Editor’,’http://…’);
d.add(6,1,’3 Columns with LR Sidebars’,’http://…’);

d.add(7,0,’Blog Traffic’);
d.add(8,7,’How to Monitor Visitors’,’http://…’);
d.add(9,7,’Feedjit’,’http://…’);
d.add(10,7,’Exclude Your Traffic from GA’,’http://…’);

d.add(11,0,’Customizations’);
d.add(12,11,’Add a Custom CSS class’,’http://…’);
d.add(13,11,’Related Posts Table’,’http://…’);
d.add(14,11,’Limit Widgets to Specific Pages’,’http://…’);

d.add(15,1,’3 Column Step by Step Guides’,’http://…’);

document.write(d);

//–>
</script>
</div>

အနည်းငယ်ရှင်းပြလိုပါသည်။Favorite Articles ၏ အောက်တွင်

  • 3 Columns
  • Blog Traffic
  • Customizations ဟူ၍ ရှိပါသည်။

ထို့ကြောင့် ကုဒ်တွင်d.add(0,-1,’Favorite Articles’);d.add(1,0,’3 Columns’);d.add(7,0,’Blog Traffic’);d.add(11,0,’Customizations’); ဟူ၍ ဖြစ်သည်။လိုင်း ‘0’ ၏ အောက်တွင် ရှိသောကြောင့် ကျန်သုံးခုစလုံးတွင် ဒုတိယဂဏန်းမှာ ‘0’ ဖြစ်ရသည်။Customizations ၏ အောက်တွင်

  • Add a Customer CSS class
  • Related Posts Table
  • Limit Widgets to Specific Pages ဟူ၍ ရှိပြန်သောကြောင့် ကုဒ်မှာ ဤသို့ ဖြစ်ရသည်။

d.add(11,0,’Customizations’);d.add(12,11,’Add a Custom CSS class’,’http://…’);d.add(13,11,’Related Posts Table’,’http://…’);d.add(14,11,’Limit Widgets to Specific Pages’,’http://…’);လိုင်း ’11’ ၏ အစွယ်အပွား ဖြစ်သောကြောင့် ဒုတိယဂဏန်းမှာ ’11’ သာ ဖြစ်ရမည်။’http://…’ မှာ မိမိသွားလိုသော Web URL ကို ရေးထည့်ပေးရမည် ဖြစ်သည်။d.add(15,1,’3 Column Step by Step Guides’,’http://…’); မှာလိုင်း ’15’ ရောက်မှ လိုင်း ‘1’ ရှိ ‘3 Columns’ အောက်သို့ လှမ်းထည့်ခြင်းဖြစ်သည်။

မှတ်ချက်ရေးရန်

Your email address will not be published. Required fields are marked *

Discover more from ဖြိုးကျော်နှင့် သူ၏စာများ

Subscribe now to keep reading and get access to the full archive.

Continue reading