GetElementById

GetElementById




I am working on adding banners in a CMS that I do not have access to edit the HTML or Template.  However, I have the ability to add code in to a module but the banner will appear in that module.  I have been using the script below (that was written by someone else in my company that is no longer here). The website I am placing this on does not have Id's rather it utilizes class. So I am giving the banner code an id of "Banner" and I need the code below to place it before a class name.

Class
<div class="container-inner">

<script type="text/javascript">

window.onload = function () {
var Banner = document.getElementById('Banner');
var page = document.getElementById('footer');
page.insertBefore(Banner, footer.firstChild); 
Banner.style.display = 'block';
}
</script>


Any help would be greatly appreciated in getting this to work. Also the website already utilizes JQuery.