Jump to content

Help with Javascript


Bartman

Recommended Posts

I have a javascript file called ad.js inside looks like this

 

var ADPLACER_PATH = "http://www.mywebsite.com/";
var PREROLL_ENABLED = 1;
var MIDROLL_ENABLED = 0;
var PREROLL_ZONE_ID = 0;
var MIDROLL_ZONE_ID = 0;
var PREROLL_TIMEOUT_IN = 0;
var PREROLL_TIMEOUT_OUT = 35000;
var PREROLLCLOSEBUTTON_TIMEIN = 0;
var MIDROLL_TIMEOUT_IN = 0;
var MIDROLL_TIMEOUT_OUT = 3000000;

var PREROLL_ONSHOW = function(C){
setTimeout(function(){document.getElementById('adplacer_prerollClose'+C).onclick()}, PREROLL_TIMEOUT_OUT);
}
var PREROLL_ONHIDE = function(){}

document.write ("<scr"+"ipt type='text/javascript' src='"+ADPLACER_PATH+"adss.js'><\/scr"+"ipt>");

 

It places an ad over a video on my site. I know I can add the .js to my site by adding this <script type="text/javascript" src="ad.js"></script>  to my head

 

But what do I need to add to my page to make it appear?

 

Do I have to put the video between a DIV? Can someone let me know what I need to do to make it appear? thanks

Link to comment
https://forums.phpfreaks.com/topic/252631-help-with-javascript/
Share on other sites

it is not an ad network. I want to put an ad in that code. I know how to do that...just want to know how to make that code appear on me site.. must be a div

 

There is no way for anyone to know that if we don't know what the adss.js library is, and where you got it from.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.