where should i put the ads script ?
-
The ads script below is provided by the ad compay.
- <script type="text/javascript">
document.write('<a style="display:none!important" id="tanx-a-mm_81122775_2157835_72285000"></a>');
tanx_s = document.createElement("script");
tanx_s.type = "text/javascript";
tanx_s.charset = "gbk";
tanx_s.id = "tanx-s-mm_81122775_2157835_72285000";
tanx_s.async = true;
tanx_s.src = "http://p.tanx.com/ex?i=mm_81122775_21578359_72285000";
tanx_h = document.getElementsByTagName("head")[0];
if(tanx_h)tanx_h.insertBefore(tanx_s,tanx_h.firstChild);
</script>
I do not know where i should put it .
- <script type="text/javascript">
-
@julian Iam using the Persona theme .If I put the ads script in the footer.tpl ,the ads does not apear . And I try to put it in the topic.tpl of the Persona theme , then the ads apears ,but the page content disappear . If i refresh the page ,the ads disappears ,and the page content apears . The ads and the page content can not apear at the same time . It seems that they are conflict with each other.
-
@julian thanks。I put it at the end of <head> in the header.tpl , the ads does not apear at the first time , must refresh the page manually ,then the ads can apear . I try many times. I think the best way is to put it in the topic.tpl . Is ther e any other way to let ads and page content appear at the first time ?
my page with ads : http://www.xdoya.com/topic/269