Hai Sahabat blogger kali ini admin akan share bagaimana Cara Membuat Notifikasi Komentar Mirip Google Plus .
Nah kelebihan dari widget ini adalah loading blog lebih ringan di banding dengan Notifikasi Komentar Avatar atau Recent Coment Avatar ,
Disamping kelebihan loading yang ringan kelebihan lain nya adalah tampilan blog menjadi lebih simple dan keren ,
nah langsung saja , simak baik-baik cara nya
pertama anda masuk ke Dasbord Blog => Template => Edit Html
kedua cari cari kode ]]></b:skin> atau kode </style> untuk mempermudah pencarian bisa tekan ctrl+f setelah itu copy kode ]]></b:skin> atau kode </style> .
ketiga copy kode di bawah ini setelah itu paste di atas ]]></b:skin> atau kode </style> .
/* Notifikasi Komentar
----------------------------------------------- */
#cm-total {
position:fixed;
top:14px;
right:0;
width:188px;
text-align:left;
z-index:9999;
cursor:pointer;
}
.total-counter {
background-color:#d11919;
color:white;
padding:1px 4px;
font-family:Arial,Sans-serif;
font-size:11px;
border-radius:5px;
font-weight:bold;
}
#notif {
position:fixed;
top:25px;
right:126px;
z-index:9999;
height:22px;
width:19px;
opacity:.4;
cursor:pointer;
}
#notif:hover {
opacity:1;
}
.close-notif {
position:fixed;
top:92px;
right:20px;
z-index:9999;
cursor:pointer;
display:none;
}
#cm-container {
width:300px;
position:fixed;
top:62px;
right:0;
z-index:9999;
background-color:#422929;
padding:60px 20px 10px 20px;
color:#0D8A80;
box-shadow:0 4px 15px -4px rgba(0,0,0,.4) !important;
text-align:left;
border:5px solid #580606;
background-clip:padding-box;
display:none;
}
#cm-container:before {
content:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh02AMcvmwH3zikOtO_qCcsapTbj13KyBi5INtBAu0eC2gdAOFvvBX5OVVXl3fgi4CNxBvIqPdYbQoav9Zk3XyZSV7zl1Uiq42kz4Ltx7dbJeHGw1C1m9_lcc8R_i1absfeIncVWaQ46VY/s1600/arrow-notif.png');
position:absolute;
top:-19px;
left:200px;
}
#cm-container:after {
content:"Komentar Terbaru";
position:absolute;
top:22px;
left:150px;
text-align:center;
font:normal 14px Arial;
color:#fff;
}
.cm-outer {
margin:0 auto;
padding:0;
font-size:11px;
text-align:left;
font:normal 12px Arial;
}
.cm-outer ul{
margin-bottom:5px;
}
.cm-outer li {
padding:9px 10px 14px;
list-style:none;
clear:both;
position:relative;
border-radius: 3px;
box-shadow: 0 1px 2px rgba(0,0,0,.2);
background-color: #422929;
margin-bottom:10px;
}
.cm-text {color:#E61919;}
.cm-outer {margin:0 0 5px}
.cm-header {margin: 4px 0 8px 90px;font-size:11px;font-weight:normal !important;}
.cm-header a {color:#262626;text-decoration:none;font-size:14px;font-weight:bold}
.cm-header a:hover {color:#74a2c3;text-decoration:none;}
.cm-outer .cm-content {overflow:hidden}
.cm-content {margin-left:90px}
.cm-outer img {
display:block;
float:left;
background:#ececec url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyyKiXZNrc4AAiSQDLKTgwDk5uPicci939rhQv0XU8_Od8-gJ2Uepawbh4WQ4baha9Aklj2d67hJx26VifXqC-7JyLXV4aKBiSsk58IpDn81R67jiPDQlFc4yGqymXP3MrENRg8j006-U/s1600/anon80.png') no-repeat 50% 50%;
overflow:hidden;
border-radius:3px 0 0 3px;
position:absolute;
top:0;
left:0;
}
.cm-footer {margin-top:7px;}
.cm-footer a {color:#5886a7;text-decoration:none;}
.cm-footer a:hover {color:#74a2c3;text-decoration:none;}
div.cm-header img[src='http://img1.blogblog.com/img/openid16-rounded.gif'] {
content: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcWlCpxbaliZSN84jQiNLPyBwfzvba21RHeyc3DtTGcldQbfOLZb2fkPSMmrakIOeBk49p8A83SK_pzU8qnuH9KmCEMtiVQ4UnbrA-6zQfuJ8GStVaf0nytV4o2hd5CwNXVjk4xCr6gho/s80-c/gravatar.png);
}
ke empat cari kode </body> dan paste kode di bawah ini di atas </body>
<div id='cm-container'/>
<div id='notif'><img alt='notifikasi' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiodXRK2sxshQuDZzz1GUfXvDLZjnWUO34MRIpJTsbfmnxAV0uglRzPdGEP75UTsGDPqkOsEY24kRnPN-DfTQcvoN9AaUCMibx4jVTTmltoot6OPdN1Meytxg5zTYj4shUtcSvTK5FocHo/s1600/lonceng.png' title='Notifikasi'/></div>
<div id='cm-total'/>
<div class='close-notif'><img alt='close' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivzSAg2rDiYzJZKReXHrn5uNYP0Ba8jvbaZAMH10RWlmQeOyyf1rpixlPd7Jcfmi6qnNMKYkc8hvkVfYsDIkKvFoeMxhVyC5FZISb1-xrT0kRtOF5VGqhRtQtOM_sTuJx-W1RGOVhQKEk/s1600/delete4.png' title='close'/></div>
<script>
//<![CDATA[
var originalTitle = document.title;
var cm_config = {
home_page: "http://blog-kenyut.blogspot.com",
max_result: 6,
t_w: 80,
t_h: 80,
summary: 40,
new_tab_link: true,
ct_id: "cm-container",
new_cm: " Komentar Baru!",
interval: 30000,
alert: true,
alert: function(total) {
document.getElementById("cm-total").innerHTML = '<strong class=\'total-counter\'>'+total+'</strong>';
document.title = '(' + total + ') ' + originalTitle;
}
};
$('#notif').click(function(){$('#cm-container, .close-notif').toggle();});$('.close-notif').click(function(){$('#cm-container, .close-notif').hide();});document.getElementById('notif').onclick = function(){document.title = originalTitle;$('#cm-total').hide();};document.getElementById('show-total').onclick = function(){document.title = originalTitle;$('#cm-total').hide();$('#cm-container').show();};
//]]>
</script>
<script src='http://yourjavascript.com/1858374111/aab-notif-koment.js' type='text/javascript'/>
NB : ganti
http://blog-kenyut.blogspot.com dengan url blog anda
Setelah itu klik simpan dan lihat hasil nya
oke sekian dulu tutorial dari Cara Membuat Notifikasi Komentar Mirip Google Plus .
semoga bermanfaat , kalo ada yag ingin ditanyakan bisa tanya di komentar . .
jangan lupa klik like pada fanspage untuk mendapatkan update terbaru daru BLOG KENYUT .
0 Response to "Cara Membuat Notifikasi Komentar Mirip Google Plus"
Post a Comment