Placing Javascript ad zone in PHP function -



Placing Javascript ad zone in PHP function -

i trying place javascript advertisement zone within php function. doing command advertisement zones placed on each page. in php template using:

<?php if(is_page('welcome-president')) { oiopub_banner_zone(9); oiopub_banner_zone(19); } ?>

i trying place javascript code within if conditional tag instead of oiopub_banner_zone(9); ads not cached , rotate.

<script type="text/javascript" src="http://rutgers.myuvn.com/wp-content/plugins/oiopub-direct/js.php#type=banner&align=center&zone=9"></script>

thanks in advance!

rather phone call function oiopub_banner_zone(9) display banner code, can replace function phone call echo , actual script tag output on page.

<?php if(is_page('welcome-president')) { echo '<script type="text/javascript" src="http://rutgers.myuvn.com/wp-content/plugins/oiopub-direct/js.php#type=banner&align=center&zone=9"></script>'; oiopub_banner_zone(19); } ?>

javascript php

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -