Well, one way is to use javascript(ajax). So, i created an example of how it could be done:
Code:
<div id="banner"></div>
<script type="text/javascript">
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
//url to file with banner-code.
bannercodeurl = "http://www.example.com/bannercode.html";
xmlhttp.onreadystatechange = function()
{
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
{
document.getElementById("banner").innerHTML = xmlhttp.responseText;
}
}
xmlhttp.open("GET",bannercodeurl,true);
xmlhttp.send();
</script>
It's important that the javascript is placed somewhere
after the div, like in the example. You will need to replace http://www.example.com/bannercode.html with the url to the file containing the banner-code.