Back to Table of Contents

Which HTML code should I use for a FLASH/HTML5 banner?

Please use following HTML5/FLASH code:

<canvas id="BANNER_NAME.js" onclick="this.focus();" oncontextmenu="return false;" width=500 height=350 
style="outline: none">
<object type="application/x-shockwave-flash" width="500" height="350" data="BANNER_NAME.swf">
<param name="movie" value="BANNER_NAME.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="allowscriptaccess" VALUE="always" />
	<a href="">
		<img src="" 
		alt="Get Adobe Flash player"/>
<script type="text/javascript" src="BANNER_NAME.js">
	Javascript not supported!

Be sure to change BANNER_NAME.swf/BANNER_NAME.js by your real banner name and adjust the width and height to the actual dimensions of your banner.

This code attempts to display the banner firstly in HTML5 and then, if it is not working, it displays the Flash version.

Banner Effect will generate the necessary code to display the banner. In most cases, simply take the code displayed by Banner Effect and everything will work perfectly.