HTML Code to Add a Flash Banner on the Page

By | July 2, 2012

Today I am coming with a simple solution for those who have never had experience with Flash. For example, you have exchanged banners with another site and all you have is a swf file and you have no idea how to add it to your site. Here is a brief guide.

First of all, you need to determine the size of the banner in pixels. This is essential since you need to define an object with clear size. You need to ask the person who made the banner or measure it by yourself.

Next, you need to upload it to your server. swf files should not be hotlink-ed, since it slows down the page load.

Next you need to add the following code (note that this is the simplest one and it includes a minimum number of parameters needed to display your flash banner).

<object type=”application/x-shockwave-flash” data=”890×60.swf”  width=”890″ height=”60″>
<param name=”movie” value=”890×60.swf” />

As you can see, we define the object size and the source to the file. 890×60.swf is the name of the file, and you need to change it if necessary. Hope it saves you some time. If you have any questions, don’t hesitate to ask them.