Visitors

សូមស្វាគមន៏ការចូលមកកាន់ប្លក់​ www.ideaforkhmer.blogspot.com​ របស់យើងខ្ញុំ។នៅទីនេះលោកអ្នកអាចស្វែងរកនូវចំនេះដឹងថ្មីុៗអំពី​ គណិតវិទ្យា​ រូបវិទ្យា គីមីវិទ្យា​ ពត៌មានវិទ្យា វប្បធម៌​ ធរិយធម៌​ ប្រវត្តិសាស្រ្ត​ និងចំនេះដឹងជាច្រើនទៀត។សូមចាប់ផ្ដើមការស្រាវជ្រាវរបស់លោកអ្នក (By: Vungsovanreach)

Friday, February 28, 2014

របៀប​ដាក់​​ធាតុ​ក្រាហ្វិក​អត្ថបទ​ចៃដន្យ​ដែល​មាន​ផ្ទៃ​ពណ៌​ចម្រុះ

    កាល​លើក​មុន​ប្លុក Idea for khmer ធ្លាប់​បាន​បង្ហាញ​ពី Widget (ធាតុ​ក្រាហ្វិក) ដាក់​អត្ថបទ​ចៃដន្យ​ឲ្យ​បង្ហាញ​តំណ​អត្ថបទ​ទាំង​ចាស់​ទាំង​ថ្មី ហើយ​ក្នុង​អត្ថបទ​នេះ​ដែរ ខ្ញុំ​នឹង​បង្ហាញ​ពី Widget អត្ថបទ​ចៃដន្យ​​ដែល​មាន​ផ្ទៃ​ពណ៌​ចម្រុះ ទាក់​ទាញ​ភ្នែក​អ្នក​ចូល​មើល។ Random posts Widget គឺ​មាន​សារសំខាន់​ណាស់ ព្រោះ​អាច​ធ្វើ​ឲ្យ​អត្ថបទ​ចាស់​ងាយស្រួល​មាន​គេ​ចូល​មើល​នៅ​ពេល​ដែល​ប្លក​កាន់តែ​មាន​អត្ថបទ​ច្រើន​ទៅៗ ត្រូវ​ការ​ជំនួយ​ឲ្យ​បង្ហាញ​អត្ថបទ​ចាស់​ឡើង​វិញ។ ហើយ​​របៀប​ដាក់​គឺ​ងាយស្រួល​មែនទែន បើ​ចង់​ដឹង​សូម​មើល​ខាង​ក្រោម​នេះ ៖
៙ របៀប​ដាក់​​អត្ថបទ​ចៃដន្យ​ដែល​មាន​ផ្ទៃ​ពណ៌​ចម្រុះ (Multi Colored Random Posts Widget) 
- Log In ចូល​គណនី Blogger របស់​លោក​អ្នក។
- ចូល​ទៅ​តាប Layout >>>



- រមូរ​​ចុះ (scroll down) រក​មើល gadget ដែល​មាន​ឈ្មោះ​ថា HTML/JavaScript រួច​ចុច​​លើ​វា​ដើម្បី​បើក (មើល​រូប​ខាង​ក្រោម​នេះ)




-ចម្លង​ Code (Multi Colored Random Posts Widget) ខាង​ក្រោម យក​ទៅ​បិទភ្ជាប់​ក្នុង gadget ហើយ​​ដាក់​ចំណង​ជើង​ឲ្យ Widget ផង,​ រួច Save ដើម្បី​ទទួល​យក។ ​ចូល​ដល់​តាម Layout វិញ យើង​អាច​ចាប់​ទាញ​យក​ទៅ​ដាក់​ទៅ​ទីតាំង​សមរម្យ ឧទាហរណ៍ : នៅ​ផ្នែក​ខាង​ក្រោម​គេ​។


<style type="text/css">
.noop-random-posts ul li {
    list-style-image:none;
}.noop-random-posts ul {
list-style-type: none;
margin: 0;
padding: 5px 0;
}
.noop-random-posts ul li {
border: 0 none;
margin: 5px 0;
padding: 10px;
position: relative;
}
.noop-random-posts ul li:first-child {
background: none repeat scroll 0 0 #FF4C54;
width: 97%;
}
.noop-random-posts ul li:first-child:after {
content: "1";
}
.noop-random-posts ul li:first-child + li {
background: none repeat scroll 0 0 #FF764C;
width: 87%;
}
.noop-random-posts ul li:first-child + li:after {
content: "2";
}
.noop-random-posts ul li:first-child + li + li {
background: none repeat scroll 0 0 #FFDE4C;
width: 84%;
}
.noop-random-posts ul li:first-child + li + li:after {
content: "3";
}
.noop-random-posts ul li:first-child + li + li + li {
background: none repeat scroll 0 0 #C7F25F;
width: 81%;
}
.noop-random-posts ul li:first-child + li + li + li:after {
content: "4";
}
.noop-random-posts ul li:first-child + li + li + li + li {
background: none repeat scroll 0 0 #33C9F7;
width: 78%;
}
.noop-random-posts ul li:first-child + li + li + li + li:after {
content: "5";
}
.noop-random-posts ul li:first-child + li + li + li + li + li {
background: none repeat scroll 0 0 #7EE3C7;
width: 75%;
}
.noop-random-posts ul li:first-child + li + li + li + li + li:after {
content: "6";
}
.noop-random-posts ul li:first-child + li + li + li + li + li + li {
background: none repeat scroll 0 0 #F6993D;
width: 72%;
}
.noop-random-posts ul li:first-child + li + li + li + li + li + li:after {
content: "7";
}
.noop-random-posts ul li:first-child + li + li + li + li + li + li + li {
background: none repeat scroll 0 0 #F59095;
width: 69%;
}
.noop-random-posts ul li:first-child + li + li + li + li + li + li + li:after {
content: "8";
}
.noop-random-posts ul li:first-child + li + li + li + li + li + li + li + li {
background: none repeat scroll 0 0 #C7F25F;
width: 66%;
}
.noop-random-posts ul li:first-child + li + li + li + li + li + li + li + li:after {
content: "9";
}
.noop-random-posts ul li:first-child:after, .noop-random-posts ul li:first-child + li:after, .noop-random-posts ul li:first-child + li + li:after, .noop-random-posts ul li:first-child + li + li + li:after, .noop-random-posts ul li:first-child + li + li + li + li:after, .noop-random-posts ul li:first-child + li + li + li + li + li:after, .noop-random-posts ul li:first-child + li + li + li + li + li + li:after, .noop-random-posts ul li:first-child + li + li + li + li + li + li + li:after, .noop-random-posts ul li:first-child + li + li + li + li + li + li + li + li:after {
background: none repeat scroll 0 0 #353535;
border-radius: 50% 50% 50% 50%;
color: #FFFFFF;
font-size: 25px;
height: 30px;
position: absolute;
right: -17px;
text-align: center;
top: 1px;
width: 30px;
}
.noop-random-posts ul li a {
color: #444444;
font-size: 13px;
text-decoration: none;
}
</style>
<div class="noop-random-posts"><script type="text/javascript">
    var randarray = new Array();var l=0;var flag;
    var numofpost=5;function nooprandomposts(json){
    var total = parseInt(json.feed.openSearch$totalResults.$t,10);
    for(i=0;i < numofpost;){flag=0;randarray.length=numofpost;l=Math.floor(Math.random()*total);for(j in randarray){if(l==randarray[j]){ flag=1;}}
    if(flag==0&&l!=0){randarray[i++]=l;}}document.write('<ul>');
    for(n in randarray){ var p=randarray[n];var entry=json.feed.entry[p-1];
    for(k=0; k < entry.link.length; k++){if(entry.link[k].rel=='alternate'){var item = "<li>" + "<a href=" + entry.link[k].href + ">" + entry.title.$t + "</a> </li>";
    document.write(item);}}
    }document.write('</ul>');}
    </script>
<script type="text/javascript" src="/feeds/posts/default?alt=json-in-script&start-index=1&max-results=1000&callback=nooprandomposts"></script></div>

​លោក​អ្នក​អាច​កំណត់​បន្ថែម ឬ​មិន​កំណត់​ក៏​បាន ៖
- នៅ​ត្រង់ font-size: 13px; កំណត់​ទំហំ​អក្សរ ។

ចំណាំ៖ ដើម្បី​ដក Widget មួយ​នេះ​ចេញ​វិញ យើង​គ្រាន់តែ​ចូល​ទៅ​តាប Layout រក​មើល Gadget ដែល​ផ្ទុក​ Code: Multi Colored Random Posts Widget រួច​ remove ចេញ​ជា​ការ​ស្រេច។


   បើក​អ្នក​ជា​អ្នក​និយមពណ៌ ខ្ញុំ​ជឿ​ថា Widget មួយ​នេះ​នឹង​ត្រូវ​ចិត្ត​ ជួប​គ្នា​នៅ​គន្លឹះ Blogger លើក​ក្រោយ​ទៀត តែ​មុន​នឹង​លា សូម​ Like និង​ចែករំលែក​ដល់​បងប្អូន​ខ្មែរ​យើង​ផង​ដែល​គាត់​កំពុង​ប្រើ​ Blogger