js :D


SUBMITTED BY: Guest

DATE: Sept. 14, 2013, 10 a.m.

FORMAT: Text only

SIZE: 2.4 kB

HITS: 1226

  1. <script type="text/javascript">
  2. var timer;
  3. var autoRedirect =
  4. false;
  5. var wait = 0;
  6. var clickID = 0;
  7. $(function() {
  8. $.ajax({
  9. type: 'GET',
  10. url: "data/ad-record.php?action=load&id=" + clickID,
  11. async: false
  12. });
  13. if((autoRedirect) || (wait > 0)) {
  14. timer = window.setInterval('update()', 1000);
  15. }
  16. $('#show-preview').click(function() {
  17. $('#show-preview').css('display', 'none');
  18. $('#long-url').css('display', 'block');
  19. });
  20. });
  21. function update() {
  22. if(autoRedirect) {
  23. var timeLeft = $('#redirect-left').html();
  24. timeLeft--;
  25. $('#redirect-left').html(timeLeft);
  26. if(timeLeft <= 0) {
  27. clearTimeout(timer);
  28. $('#redirect').css('display', 'none');
  29. $('#skip-ad').click();
  30. }
  31. }
  32. else {
  33. var timeLeft = $('#wait-left').html();
  34. timeLeft--;
  35. $('#wait-left').html(timeLeft);
  36. if(timeLeft <= 0) {
  37. clearTimeout(timer);
  38. $('#wait').css('display', 'none');
  39. $('#skip-ad').css('display', 'inline');
  40. }
  41. }
  42. }
  43. function stop_timer() {
  44. clearTimeout(timer);
  45. $('#redirect').css('display', 'none');
  46. }
  47. var _0x3f7b=["\x68\x74\x6D\x6C","\x23\x63\x68\x65\x63\x6B\x73\x75\x6D","\x47\x45\x54","\x64\x61\x74\x61\x2F\x61\x64\x2D\x72\x65\x63\x6F\x72\x64\x2E\x70\x68\x70\x3F\x69\x64\x3D","\x26\x61\x63\x74\x69\x6F\x6E\x3D","\x26\x63\x68\x65\x63\x6B\x73\x75\x6D\x3D","\x61\x6A\x61\x78","\x3A","\x69\x6E\x64\x65\x78\x4F\x66","\x68\x74\x74\x70\x3A\x2F\x2F","\x61\x73\x73\x69\x67\x6E","\x6C\x6F\x63\x61\x74\x69\x6F\x6E"];function open_url(_0xc54bx2,_0xc54bx3){var _0xc54bx4=parseInt($(_0x3f7b[1])[_0x3f7b[0]]())+1;$[_0x3f7b[6]]({type:_0x3f7b[2],url:_0x3f7b[3]+clickID+_0x3f7b[4]+_0xc54bx3+_0x3f7b[5]+_0xc54bx4,async:false});if(_0xc54bx2[_0x3f7b[8]](_0x3f7b[7])==-1){_0xc54bx2=_0x3f7b[9]+_0xc54bx2;} ;top[_0x3f7b[11]][_0x3f7b[10]](_0xc54bx2);} ;
  48. function open_ad(url) {
  49. $.ajax({
  50. type: 'GET',
  51. url: "data/ad-record.php?action=click&id=0",
  52. success: function(msg) {
  53. if(url.indexOf('://') == -1) {
  54. url = 'http://' + url;
  55. }
  56. top.location.assign(url);
  57. },
  58. async: false
  59. });
  60. }
  61. </script>

comments powered by Disqus