Floating Social icons với hiệu ứng hover cho blog
Hôm nay mình sẽ chia sẻ tới các bạn một thủ thuật tạo floating social icons với hiệu ứng khi rê chuột qua cho Blogger. Sau đây là các bước thực hiện:
Bước 1: Tại trang quản trị, các bạn vào Bố cục, tạo một tiện ích HTML/JavaScripts.
Bước 2: Dán đoạn code sau vào phần nội dung:
<!--Floating Social icons with hover effect by kjmagic.blogspot.com-->
<style type="text/css">
a.abt-hover img { filter:alpha(opacity=50); -moz-opacity: 0.5; opacity: 0.5; -khtml-opacity: 0.5;} a.abt-hover:hover img { filter:alpha(opacity=100); -moz-opacity: 1.0; opacity: 1.0; -khtml-opacity: 1.0; }
</style>
<div style="display: scroll; left: 30px; position: fixed; top: 200px;">
<a class="abt-hover" href="http://twitter.com/quocdoantrinh" imageanchor="1" rel="nofollow" style="margin-left: 1em; margin-right: 1em;" target="_blank" title="Follow Me"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAMnz4w9McCdio6kT3g4li6BkBNKhyphenhyphenm5NV9_1Zt8mL6Q7K4BF7VyJHW09vqyXJErtXfAWfTysYt-J8RVBsk9ae5_YmFQX6dQhNKfE-50oeu72AEKSJzxprBZ75TVhhRIxhA-gFj4sKGSY/h120/kjmagic-twitter-icon.png" /></a>
<a class="abt-hover" href="http://www.facebook.com/mrjan.tk" imageanchor="1" rel="nofollow" style="margin-left: 1em; margin-right: 1em;" target="_blank" title="Like Me"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_p1FMMbWaGklHOt13ISjDeKtUEdWXvw0yQ5n0tIoBR7oF_UoDTAARuwrVccXQN-Y87BRUJ_-qdwmsCCMtnC-Ge4Bwrw84iCPno0EfRtEjL80iDHP0PmaMqckTl9ciGfQlSr13HnJ6uNI/h120/kjmagic-fbicon.gif" /></a>
</div>
<!--/Floating Social icons with hover effect by kjmagic.blogspot.com-->
Sửa những chỗ mình đánh dấu thành ID Twitter và Facebook Fanpage của bạn.
Chúc thành công !
Không có nhận xét nào: