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
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.

Link to comment
Share on other sites

the adss.js  just has the ad network code with a close button... the ad.js has it appear for x amount of seconds before either closing or disappearing

 

Don't I display this from the getElementById in a div?  like

 

<div id="Something Here">

Video

</div>

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.