homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

How to add in video ad to Flowplayer 5 Wordpress plugin?

Msg#: 4576325 posted 9:17 pm on May 21, 2013 (gmt 0)

The code from adXpansion looks something like this:

<!-- Generated by AdXpansion -->
<script type='text/javascript'>
var adx_displayonload=1;
var adx_isad_display = 1;
<script type='text/javascript' src='http://ads.adxpansion.com/public/js/showads.php?zone_id=101683&ver=1&type=flowplayer'></sript>
<!-- End of AdXpansion code -->

The Wordpress plugin is based on Flowplayer 5 (among others, but there is a way to select this one), and it consists of the following files:

Flowplayer.js (http://pastebin.com/uT9VYwbu)
Flowplayer.min.js (http://pastebin.com/hJ1UZApy)
Index.html (http://pastebin.com/XeLexkAz)

I would like to use it on multiple sites (up to 50 or more), and the ad zone code will be different for every site. I guess I would need to create an array, and iterate through it, in order to display ad code depending on the domain name (this should not be a problem). I am just not sure where would I insert the code etc.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved