AJAX Banner is a combination between "AJAX Header rotator" & "All Banner", If the visitor will spend more time on a page, it makes sense to opt-in for displaying more than one ad at one page load.
Read The Full Tutorial.
AJAX Banner is a combination between "AJAX Header rotator" & "All Banner", If the visitor will spend more time on a page, it makes sense to opt-in for displaying more than one ad at one page load.
Here is the HTML code:
<script language="JavaScript" src="cjajax.js"></script>
<%@ taglib uri="taglib.tld" prefix="a" %>
<a:AjaxBanner url="/servlet/NextAdd" timeout="120">
your initial ad chunk is here
</a:AjaxBanner>
Waits 120 seconds and requests a next chunk
Here is the Xml code:
<?xml version="1.0" ?> <banner> <content><img src="ad.gif"></content> <reload>60</reload> </banner>
You can assign some id to your ad block and request next ad block in JavaScript. Function name is getNextAdChunk_yourId() (yourId here is id for your block). For example:
<%@ taglib uri="taglib.tld" prefix="a" %>
<a:AjaxBanner id="block1" url="/servlet/NextAdd" timeout="120">
your initial ad chunk is here
</a:AjaxBanner>
<script language="JavaScript"> getNextAdChunk_block1(); </script>
|