Deploying shoutboxes on your web site couldn't be easier. Our code wizard will generate all of the HTML code for you. All you have to do is copy and paste that code into the bottom of your web page near the </body> tag.
Want to add a border to the top of your shoutbox? Simply add the following CSS to your stylesheet or place it just above the code for the shoutbox:
<style type="text/css">
#shoutbox { border-top: 2px solid #000000; }
</style>
For a live demonstration of this, click here to add the border and then click here to remove the border.
Don't like the default close button? You can change it by going to Settings > Basic > Code Wizard
The ability to include a JavaScript callback function in custom creatives is useful to stop audio or video from playing promptly when the shoutbox is closed by the user:
<script type="text/javascript">
function shoutboxCloseCallback() {
// your custom close logic here...
}
</script>
Remember this needs to be a global function in order for it to be visible to the shoutbox wrapper code. Using this callback is not necessary with HTML5 banners or video banners. Those types of banners are designed to destroy any audio/video components upon closing so they stop playing automatically.
If your web site happens to render in Quirks Mode you will need to correct that in order for the shoutbox to show up correctly in Internet Explorer, however, this can usually be accomplished by simply specifying a doctype if one is missing or by switching to a standards compatible HTML doctype.
The HTML5 doctype as well as all of the XHTML 1.0 or 1.1 doctypes, which are the most commonly used for modern or relatively modern web sites are already rendered in standards compliant mode and require no changes.
On older web sites that use HTML 4.01 you must use the complete doctype with system identifier which would be one of the following: