Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function loadOxAdZone(zone, target) {
- var url = location.protocol == 'https:' ? '//ssl5.ovh.net/~telewizj/ad/old/adloader.php' : '//ad.ox.pl/old/adloader.php'
- $.ajax({
- url : url + '?zone_id=' + zone + '&rand=' + Math.floor(Math.random() * 99999999999),
- type : "GET",
- async : true,
- dataType : 'html'
- }).done(function(answer) {
- answer = answer.replace("'750'", '400').replace("'150'", '400');
- $(target).html(answer);
- try {
- document.getElementById('ad-right-133').setAttribute("style", "visibility:visible;width:350px;height:217px;");
- } catch(a) {
- console.log(a);
- }
- try {
- document.getElementById('ad-right-250').setAttribute("style", "visibility:visible;width:350px;height:367px;");
- } catch(a) {
- console.log(a);
- }
- try {
- $('[id^="id-"').attr("style", "visibility:visible;height:auto;width:100%;");
- } catch(a) {
- console.log(a);
- }
- $('.openx-inner-tidings').removeAttr('style');
- $('[class^="openx-inner"]').removeAttr('style');
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement