kali ini saya akan berbagi bagaimana caranya menawarkan pengunjung untuk like Fan Page Facebook Blog kita. Cara ini terbukti meningkatkan like sehingga akan banyak orang melihat postingan kita di facebook dan kalau mereka tertarik pasti blog kita akan ramai dikunjungi tentunya itu akan meningkatkan trafick blog kita. caranya yaitu dengan membuat pop up melayang yang nantinya akan muncul ketika blog kita pertama kali dibuka.
Oke langsung saja ini dia cara membuat pop up melayang fan page faceook :
1. masuk ke akun blog sobat
2. klik Tata letak > tambah Gadget > HTML/javascript
3. pastekan script dibawah ini
<style type="text/css"> #topbar{position:absolute; padding-left:350px;padding-top:200px;background-color:transparancy;width: 300px;visibility: hidden;z-index: 100;} </style> <script type="text/javascript"> var persistclose=0,startX=30,startY=5,verticalpos="fromtop";function iecompattest(){return document.compatMode&&"BackCompat"!=document.compatMode?document.documentElement:document.body}function get_cookie(b){var b=b+"=",c="";0<document.cookie.length&&(offset=document.cookie.indexOf(b),-1!=offset&&(offset+=b.length,end=document.cookie.indexOf(";",offset),-1==end&&(end=document.cookie.length),c=unescape(document.cookie.substring(offset,end))));return c} function closebar(){persistclose&&(document.cookie="remainclosed=1");document.getElementById("topbar").style.visibility="hidden"} function staticbar(){barheight=document.getElementById("topbar").offsetHeight;var b=-1!=navigator.appName.indexOf("Netscape")||window.opera,c=document;window.stayTopLeft=function(){if("fromtop"==verticalpos){var a=b?pageYOffset:iecompattest().scrollTop;ftlObj.y+=(a+startY-ftlObj.y)/8}else a=b?pageYOffset+innerHeight-barheight:iecompattest().scrollTop+iecompattest().clientHeight-barheight,ftlObj.y+=(a-startY-ftlObj.y)/8;ftlObj.sP(ftlObj.x,ftlObj.y);setTimeout("stayTopLeft()",10)};var a=c.getElementById("topbar"); if(!persistclose||persistclose&&""==get_cookie("remainclosed"))a.style.visibility="visible";c.layers&&(a.style=a);a.sP=function(a,b){this.style.left=a+"px";this.style.top=b+"px"};a.x=startX;"fromtop"==verticalpos?a.y=startY:(a.y=b?pageYOffset+innerHeight:iecompattest().scrollTop+iecompattest().clientHeight,a.y-=startY);ftlObj=a;stayTopLeft()} window.addEventListener?window.addEventListener("load",staticbar,!1):window.attachEvent?window.attachEvent("onload",staticbar):document.getElementById&&(window.onload=staticbar); </script> <br /> <div class="clear"> </div> <div id="topbar"> <table border="1" bgcolor="#fff"> <tr> <td> <div style="text-align: right;"> <a href="" onclick="closebar(); return false"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj06kUX4cafnY-Led6qTem-H0sL4OMsBKr289M5xhbER4AcJdr6pi61cDkE1lraubCwVrt6lNBYZY_b81joze2-GylDb6Nm5lTfHP1xQR4kajL-MgtaIxrmyONPp-ctfBPZmV07ebtLJ5k/s1600/close-1.gif" /></a></div> <center> <div style="background: #fff;"> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-like-box" data-href="http://www.facebook.com/Riefnotes" data-width="260" data-show-faces="true" data-stream="false" data-show-border="false" data-header="true"></div> </div></center></td></tr></table></div> |
Ganti Script yang berwarna berwarna biru dengan script Like FB Sobat
selamat mencoba,…. semoga berhasil,….
0 komentar:
Post a Comment