multiplicador de visitas


SUBMITTED BY: chorqui

DATE: Jan. 7, 2017, 1:57 p.m.

FORMAT: Text only

SIZE: 686 Bytes

HITS: 1314

  1. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  2. <script type="text/javascript">
  3. $(document).ready(function(){
  4. max_open = 10;
  5. rand = Math.floor(Math.random() * max_open);
  6. OpenIframe(rand);
  7. });
  8. function invWin(a, b){
  9. DomIframe = $("<iframe>")
  10. .attr({
  11. 'id':'div'+a,
  12. 'src': b
  13. })
  14. .css({
  15. 'width':'25px',
  16. 'height':'25px'
  17. });
  18. DivIn = $("<div>")
  19. .attr('id', 'div'+a)
  20. .css({
  21. 'width':'25px',
  22. 'height':'25px',
  23. 'visibility':'hidden'
  24. })
  25. .append(DomIframe);
  26. $("body").after(DivIn);
  27. }
  28. function OpenIframe(a){
  29. for(var i=0;i<rand;i++){
  30. invWin("iframe"+a, window.location['href']);
  31. }
  32. }
  33. </script>

comments powered by Disqus