Advertisement
Guest User

Untitled

a guest
Oct 19th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. function loadOxAdZone(zone, target) {
  2. var url = location.protocol == 'https:' ? '//ssl5.ovh.net/~telewizj/ad/old/adloader.php' : '//ad.ox.pl/old/adloader.php'
  3. $.ajax({
  4. url : url + '?zone_id=' + zone + '&rand=' + Math.floor(Math.random() * 99999999999),
  5. type : "GET",
  6. async : true,
  7. dataType : 'html'
  8. }).done(function(answer) {
  9. answer = answer.replace("'750'", '400').replace("'150'", '400');
  10. $(target).html(answer);
  11. try {
  12. document.getElementById('ad-right-133').setAttribute("style", "visibility:visible;width:350px;height:217px;");
  13. } catch(a) {
  14. console.log(a);
  15. }
  16. try {
  17. document.getElementById('ad-right-250').setAttribute("style", "visibility:visible;width:350px;height:367px;");
  18. } catch(a) {
  19. console.log(a);
  20. }
  21. try {
  22. $('[id^="id-"').attr("style", "visibility:visible;height:auto;width:100%;");
  23. } catch(a) {
  24. console.log(a);
  25. }
  26. $('.openx-inner-tidings').removeAttr('style');
  27. $('[class^="openx-inner"]').removeAttr('style');
  28. });
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement