Home | Projects | Tutorials | Articles | live chat | Submit Project | Big Vote
 
Ajax Projects
.NET Frameworks
Java Frameworks
PHP Frameworks
Ruby Frameworks
Other Frameworks
Cool AJAX sites
Ajax Resources
Ajax Tools
JavaScript frameworks

 Home /  Tutorials / Ajax Banner

Ajax Banner





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>  
AddThis Social Bookmark Button
Top Projects
MSN Web Messenger
MessengerFX
ebuddy
e-messenger
ILoveIM
You Tube
AJAX file upload
KoolIM.com
Meebo
Ajax.NET Professional
Tutorials
Ajax
Remotely Download Google AJAX Libraries Using PHP
Getting started with AJAX using PHP
FxCop for Ajax Code
Sleek and Smooth animated menu using jQuery
Cross Domain XHR W3C proposal
Jquery Dropdown Box
Calling Web Service Methods Using ASP.NET AJAX
Create a jQuery calendar with AJAX, PHP, and a remote data source
Building a Drag-and-Drop Shopping Cart with AJAX