PimpMyFBPage

Untitled

Nov 7th, 2011
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.35 KB | None | 0 0
  1. <script type="text/javascript">
  2. function addCommas(nStr) {
  3. nStr += '';
  4. x = nStr.split('.');
  5. x1 = x[0];
  6. x2 = x.length > 1 ? '.' + x[1] : '';
  7. var rgx = /(\d+)(\d{3})/;
  8. while (rgx.test(x1)) {
  9. x1 = x1.replace(rgx, '$1' + ',' + '$2');
  10. }
  11. return x1 + x2;
  12. }
  13.  
  14. function getrandomInt(min,max) {
  15. return Math.round(min + Math.random()*(max-min))
  16. }d
  17.  
  18. function displayStep3() {
  19. var delay = setTimeout(function() {showIt()},6000);
  20. }
  21. function showIt() {
  22. document.getElementById('step2_continue').setStyle('display', 'inline');
  23. }
  24. function increaseLikes() {
  25. var foo = new Date;
  26. var unixtime_ms = foo.getTime();
  27. var unixtime = ((Math.round((unixtime_ms / 1000) + getrandomInt(1,5)) + '').substring(7)).replace("0", "1");
  28.  
  29. Animation(document.getElementById('num_likes')).to('background', '#ECEFF5').from('background', '#ff0').go();
  30. document.getElementById('num_likes').setInnerXHTML('<span>' + addCommas(unixtime) + ' people</span>');
  31. }
  32.  
  33. </script>
  34.  
  35. <script> function bounceEase(p) { if (p <= 0.6) { return Math.pow(p * 5 / 3, 2); } else { return Math.pow((p - 0.8) * 5, 2) * 0.4 + 0.6 } } </script>
  36.  
  37.  
  38.  
  39. <div style="float: left; width: 500px; text-align: center;">
  40.  
  41. <center>
  42. </div>
  43. <a href="#" ajaxify="/ajax/ct.php?app_id=4949752878&amp;action_type=3&amp;post_form_id=ad95fb76d34737e1921f589ba6b6005c&amp;position=16&amp;">.</a>
  44. <div style="float: right; width: 500px;">
  45. <p></p>
  46. </div>
  47. </div>
  48. <br clear="all"/>
  49. <hr/>
  50.  
  51. <div id="wrapper" style="width: 505px; margin: 0 auto; padding: 5px; border: 1px solid #efefef; float: left;">
  52.  
  53. <div id="step1" style="">
  54. <center>
  55. <img src="http://img230.imageshack.us/img230/4668/kliknilajk.png"</img><br>
  56. <center>
  57. <fb:visible-to-connection>
  58. <h1><a class="UIButton UIButton_Gray UIActionButton"><span class="UIButton_Text" onclick="Animation(document.getElementById('step1')).to('height', '0px').blind().show().ease(bounceEase).go(); Animation(document.getElementById('step2')).to('height', '300px').blind().show().ease(bounceEase).go(); setInterval(function() {increaseLikes()},5000);">Drugi Korak</span></a></h1>
  59. </fb:visible-to-connection>
  60. </center>
  61. </div>
  62. <script>displayStep3();</script>
  63. <div id="step2" style="display: none;">
  64. <hr/>
  65. <br>
  66. <br>
  67. <br>
  68. <br>
  69. <b>
  70. <br>
  71.  
  72.  
  73.  
  74. <b>Drugi korak - Share.</b>
  75.  
  76. <p><u><font style="color: #ff0000;">PRITISNI SHARE DUGME ISPOD I PODELI OVU STRANICU</font></u>
  77. <br>
  78. <p>
  79. <center>
  80. <a href="LINK TVOJE STRANICE" target="_blank" onclick="(new Image()).src = '/ajax/ct.php?app_id=4949752878&action_type=3&post_form_id=ffe3d381089e8337542f7ab61593a7b9&position=16&' + Math.random();return true;">
  81. <img src="http://platform.ak.fbcdn.net/www/app_full_proxy.php?app=4949752878&v=1&size=o&cksum=bc62050f8b52b47329756fb7e6ca5d00&src=http%3A%2F%2Fimg840.imageshack.us%2Fimg840%2F401%2Ffontn.png"/>
  82. </a>
  83. </center>
  84.  
  85.  
  86. <br><br>
  87. <center><h1><div id="step2_continue" style="display: none;"> <a href="ZELJENI LINK">Klikni ovdje da pogledaš.(nakon što vam se učita stranica pričejakte 5 sekundi, a zatim kliknite na dugme SKIP AD)</span></a></div></h1></center>
  88.  
  89. </center>
  90. </div>
  91.  
  92.  
  93. </div>
  94. <div id="final_step" style="display: none;">
  95. <h2>Congratulations!</h2>
  96. <p>You just completed all 3 steps.</p>
  97. <p>Customize this text which should explain to your visitor that they are super cool for going through the 3 step process.</p>
  98.  
  99. </div>
  100.  
  101. </div>
  102.  
  103.  
  104.  
  105.  
  106.  
  107. </div>
  108.  
  109.  
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114.  
  115.  
Add Comment
Please, Sign In to add comment