Advertisement
nisanxcode

Chat_box_Pringsewu_Online

Oct 21st, 2013
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. <style type="text/css">
  2. #gb{
  3. position:fixed;
  4. top:20px;
  5. z-index:+1000;
  6. }* html #gb{position:relative;}
  7.  
  8. .gbtab{
  9. height:150px;
  10. width:50px;
  11. float:left;
  12. background:url('http://i1108.photobucket.com/albums/h405/christian410/ghtrf.png') no-repeat;
  13. }
  14.  
  15. .gbcontent {
  16. float:left;
  17. border:1px solid #000000;
  18. -moz-border-radius-bottomleft:5px;
  19. -webkit-border-radius-bottomleft:5px;
  20. -o-border-radius-bottomleft:5px;
  21. -khtml-border-radius-bottomleft:5px;
  22. -moz-border-radius-topright: 5px;
  23. -moz-border-radius-topleft: 5px;
  24. background: #F2F2F2; url() no-repeat bottom;
  25. padding:10px;
  26. }
  27.  
  28. </style>
  29.  
  30. <script type="text/javascript">
  31. function showHideGB(){
  32. var gb = document.getElementById("gb");
  33. var w = gb.offsetWidth;
  34. gb.opened ? moveGB(0, 51-w) : moveGB(30-w, 0);
  35. gb.opened = !gb.opened;
  36. }function moveGB(x0, xf){
  37.  
  38. var gb = document.getElementById("gb");
  39. var dx = Math.abs(x0-xf) > 25 ? 25 : 1;
  40. var dir = xf>x0 ? 1 : -1;
  41. var x = x0 + dx * dir;
  42. gb.style.right = x.toString() + "px";
  43. if(x0!=xf){setTimeout("moveGB("+x+", "+xf+")", 5);}
  44. }</script>
  45.  
  46. <div id="gb">
  47. <div class="gbtab" onmouseover="showHideGB()"> </div>
  48.  
  49. <div class="gbcontent">
  50. <center>
  51.  
  52. <!-- BEGIN CBOX - www.cbox.ws - v001 -->
  53. COPYKAN SCRIPT CBOX DI SINI
  54. <!-- END CBOX -->
  55.  
  56. <br />
  57. <div style="text-align:center">
  58. <span style="float:right; color:#000000;">Get this <a target="_blank" href="http://pringsewuonline.blogspot.com/2013/10/membuat-chat-box-atau-buku-tamu-melayang.html"> widget! </a></span>
  59. </div>
  60. </center></div>
  61. <script type="text/javascript">
  62. var gb = document.getElementById("gb");
  63. gb.style.right = (50-gb.offsetWidth).toString() + "px";
  64. </script>
  65.  
  66. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement