[Blogger] Chèn khung Subscription vào blog
Ở những bài trước mình có giới thiệu thủ thuật Chèn khung Social Sharing & Subscription bên dưới bài đăng, bài viết này mình sẽ chia sẻ một style nữa của khung đăng ký, các bạn có thể chèn vào bất cứ vị trí nào trên blog.
Cách thực hiện rất đơn giản, các bạn chỉ cần chèn đoạn code sau vào vị trí muốn hiển thị:
Trong đó:
Cách thực hiện rất đơn giản, các bạn chỉ cần chèn đoạn code sau vào vị trí muốn hiển thị:
<!--Social email subscription box by kjmagic.blogspot.com-->
<b:if cond='data:blog.pageType == "item"'>
<style>
.dt-sub-box {margin-left:85px; width:550px; padding:5px; border:1px solid #ccc; margin-bottom:15px; margin-top:15px; background:#21bafe; color:#000; }
.dt-sub-box {background:#21bafe; border:1px solid #ccc; -webkit-box-shadow:0px 0px 10px rgba(0, 0, 0, .3); -moz-box-shadow:0px 0px 10px rgba(0, 0, 0, .3); box-shadow:0px 0px 10px rgba(0, 0, 0, .3); }
.dt-sub-box h4 {color:#fff; margin-bottom:8px; font-size:24px; font-family:oswald; font-weight:normal; text-shadow: #000 1px 1px; text-align:center; }
.dt-sub-box h3{color:#fff; margin-bottom:0px; font-size:18px; font-family:Yanone Kaffeesatz; font-weight:normal; text-shadow: #000 1px 1px; text-align:left; }
.dt-sub-box h3{color:#000; margin-bottom:5px; font-size:18px; font-family:Yanone Kaffeesatz; font-weight:normal; text-shadow: #fff 1px 1px; text-align:justify; }
.dt-email{display:block; float:right; margin:0 0 0 10px; width:100px; height:90px; background:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimH5NsauEp4SdWJVz9eeCwOJ_BJ0xHmk8lik-Hzr5lmiMLe9fcL0kj9yioPPfKuYF7C96g0yMUiRJXS4BefDPUzmzg0qZelWyeqCD8hkDuuK9YMmXVbma_mPiLHJaheF89OtoJwSulonc/h120/dt-mail.png") no-repeat transparent;!important; }
.dt-email img{border:0px solid #666; float:left; }
.dt-Email:hover{ background:#FFFFFF border : 0px solid #EEEEEE; -webkit-transform:rotate(-1deg); -moz-transform:rotate(-1deg); -ms-transform:rotate(-1deg); -o-transform:rotate(-1deg); transform:rotate(-1deg); }
ul.dt-social{list-style:none; margin:10px; overflow:hidden; }
.dt-social li{float:left; background:none !important; padding:0px !important; margin:0 5px; margin-top:19px; }
.dt-social li a{display:block; width:40px; height:40px; background:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhf0EOO08b2d-g1M-tAew-xrvgrBvStZAtCqq96CgEqmr9W3Nm7u1wRxz6tn44318fypC8Lemh2-jpOk98hu-KjEEWkv_oPFvyFjvNX2SimOCcA_pToXD-6ltRM-xJA-lui5DPXMt8GbfI/h120/dt-social.png") no-repeat transparent; text-indent:-99999em !important; }
.dt-social li a:hover{padding:0 !important; } .dt-social li.rssicon a{background-position:0 0; }
.dt-social li.twicon a{background-position:-50px 0; }
.dt-social li.fbicon a{background-position:-100px 0; }
.dt-social li.gicon a{ background-position:-150px 0; }
.dt-social li.rssicon a:hover{ background-position:0 -50px; }
.dt-social li.twicon a:hover{ background-position:-50px -50px; }
.dt-social li.fbicon a:hover{ background-position:-100px -50px; } .dt-social li.gicon a:hover{background-position:-150px -50px; }
.dt-div{height:0px; clear:both; display:block; border-top:1px solid #ccc; border-bottom:1px solid #fff; margin-bottom:5px; }
.dt-emailbutton{background:#f7f8f9; background:-webkit-gradient(linear,left top,left bottom,color-stop(#f7f8f9,0),color-stop(#e9e9e9,1)); background:-webkit-linear-gradient(top, #f7f8f9 0%, #e9e9e9 100%); background:-moz-linear-gradient(top, #f7f8f9 0%, #e9e9e9 100%); background:-o-linear-gradient(top, #f7f8f9 0%, #e9e9e9 100%); background:linear-gradient(top, #f7f8f9 0%, #e9e9e9 100%); filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#f7f8f9', endColorstr='#e9e9e9',GradientType=0 ) ;border:1px solid #ddd; -webkit-border-radius:4px; -moz-border-radius:4px; border-radius:4px; padding:6px 12px; margin:0; -webkit-box-shadow:0 1px 0 #f9f9f9 inset, 1px 1px 1px rgba(223,223,223,0.4); -moz-box-shadow:0 1px 0 #f9f9f9 inset, 1px 1px 1px rgba(223,223,223,0.4); box-shadow:0 1px 0 #f9f9f9 inset, 1px 1px 1px rgba(223,223,223,0.4); color:#222; text-shadow:0 1px 0 #fff; line-height:1.2; cursor:pointer; font-size:13px; } .dt-emailbutton:hover{ background:#f1f1f1; background:-webkit-gradient(linear,left top,left bottom,color-stop(#f1f1f1,0),color-stop(#e0e0e0,1)); background:-webkit-linear-gradient(top, #f1f1f1 0%, #e0e0e0 100%); background:-moz-linear-gradient(top, #f1f1f1 0%, #e0e0e0 100%); background:-o-linear-gradient(top, #f1f1f1 0%, #e0e0e0 100%); background:linear-gradient(top, #f1f1f1 0%, #e0e0e0 100%); filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#f1f1f1', endColorstr='#e0e0e0',GradientType=0 ); text-decoration:none !important; }
.dt-email{ clear:both; width:100%; margin:10px 0; }
.dt-emailform{ position:relative; width:250px; margin:0 auto; }
.dt-emailinput{ width:200px; height:18px; margin:0 auto; padding:8px 40px 8px 10px; border:1px solid #ddd; -webkit-border-radius:4px; -moz-border-radius:4px; border-radius:4px; font-family:georgia; font-style:italic; -webkit-box-shadow:1px 1px 2px #dfdfdf; -moz-box-shadow:1px 1px 2px #dfdfdf; box-shadow:1px 1px 2px #dfdfdf; font-size:14px; color:#666; }
.dt-emailbutton{ -webkit-border-top-right-radius:4px; -webkit-border-bottom-right-radius:4px; -moz-border-radius-topright:4px; -moz-border-radius-bottomright:4px; border-top-right-radius:4px; border-bottom-right-radius:4px; -webkit-border-top-left-radius:0px; -webkit-border-bottom-left-radius:0px; -moz-border-radius-topleft:0px; -moz-border-radius-bottomleft:0px; border-top-left-radius:0px; border-bottom-left-radius:0px; padding:9px; position:absolute; right:-2px; top:0; display:block; line-height:16px; } .dt-emailbutton{ padding:8px !important; }
.dt-emailform,
.dt-emailinput{ width:98% !important; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; height:auto; } </style>
<div class='dt-sub-box'>
<div class='dt-email'></div>
<h4>Đăng ký để được xem nhiều hơn</h4>
<h3>
Đăng ký nhận tin mới hoàn toàn miễn phí từ www.đoàntrịnh.vn</h3>
<h3>Những bài viết hay sẽ được gửi đến cho bạn. </h3>
<div class='dt-div'> </div> <table width='100%'> <tr><td> <p style='text-align: center;color:#444;font-size:18px; font-family:oswald; font-weight:normal;text-shadow: #fff 1px 1px;'> <small>Đăng ký nhận tin mới qua Email</small></p> <div class='dt-email'> <form action='http://feedburner.google.com/fb/a/mailverify?uri=http://feeds.feedburner.com/KjMagic' class='dt-emailform' method='post' onsubmit='window.open('http://feedburner.google.com/fb/a/mailverify?uri=KjMagic;, 'popupwindow', 'scrollbars=yes,width=550,height=520');return true' target='popupwindow'> <input name='uri' type='hidden' value='http://feeds.feedburner.com/KjMagic'/> <input name='loc' type='hidden' value='en_US'/> <input class='dt-emailinput' name='email' onblur='if (this.value == "") {this.value = "Enter your email...";}' onfocus='if (this.value == "Enter your email...") {this.value = ""}' type='text' value='Enter your email...'/><input class='dt-emailbutton' title='' type='submit' value='SignUp'/> </form></div></td> <td> <ul class='dt-social'> <li class='rssicon'> <a href='http://feeds.feedburner.com/KjMagic' rel='nofollow'>Rss</a></li> <li class='twicon'> <a href='https://www.twitter.com/quocdoantrinh' rel='nofollow'>Twitter</a></li> <li class='fbicon'> <a href='https://www.facebook.com/kj.magician' rel='nofollow'>Facebook</a></li> <li class='gicon'> <a href='https://plus.google.com/id-gplus-cua-ban' rel='nofollow'>Google+</a></li> </ul></td></tr> </table> <div align='right'><span style='font-style: italic; font-size: 8px; color: solid #ffffff;'><a href='http://www.đoàntrịnh.vn/' style='text-decoration: none;' target='_blank'><font color='#000' decoration='none'>[Get this widget]</font></a></span>
</div></div>
</b:if>
<!--/Social email subscription box by kjmagic.blogspot.com-->
Trong đó:
- Phần màu vàng là Feed ID của bạn.
- Phần màu xanh là twitter của bạn.
- Phần màu cam là facebook của bạn.
- Phần màu xanh là ID G+ của bạn.
Chúc các bạn thành công !

Không có nhận xét nào: