Logo
 
 
arrow arrow2
arrow arrow2
arrow arrow2
arrow arrow2
arrow arrow2
arrow arrow2


Join our Email List!


spacer
spacer
Bar
arrow
Embedding Maps
arrow2
Bar

What is embed code?

Every Maps-of-War animation provides special HTML “embed” code so that you can show it on your own website, blog, or MySpace page.

The code looks like this:

<object width="600" height="400"><param name="movie" value="http://www.mapsofwar.com/images/EMPIRE17.swf"></param><embed src="http://www.mapsofwar.com/images/EMPIRE17.swf" type="application/x-shockwave-flash" width="600" height="400"></embed></object>

Key Characteristics:
        * width and height
        * location
        * name

How do I embed a movie?

To embed a specific map on your own site, you must copy all of the “embed code” (located below each map) and paste it into the HTML of your site (anywhere between the <body></body> tags).

Example:

html example

 

How do I adjust the width and height of the map?

If the map is too big to fit on your site, you can adjust its width and height by modifying the “width” and “height” tags. Just change the embed code to reflect the new values, and the map will automatically adjust itself!

Example:

Original Code:

<object width="600" height="400"><param name="movie" value="http://www.mapsofwar.com/images/EMPIRE17.swf"></param><embed src="http://www.mapsofwar.com/images/EMPIRE17.swf" type="application/x-shockwave-flash" width="600" height="400"></embed></object>

Modified Code:

<object width="400" height="266"><param name="movie" value="http://www.mapsofwar.com/images/EMPIRE17.swf"></param><embed src="http://www.mapsofwar.com/images/EMPIRE17.swf" type="application/x-shockwave-flash" width="400" height="266"></embed></object>

As you can see above, the height of this map was changed to 400 and its width changed to 266 so that it fits proportionately into a 400 x 300 space (average size of a blog entry).

 

The code from the width and height of the map is appearing when I embed it on my site. Can I remove this?

Yes. Sometimes the embed code will not fit perfectly into every site, especially the <object></object> tag. If this happens, you must delete these two tags from the code:

<object width="600" height="400">

</object>

Example:

Old:

<object width="600" height="400"><param name="movie" value="http://www.mapsofwar.com/images/EMPIRE17.swf"></param><embed src="http://www.mapsofwar.com/images/EMPIRE17.swf" type="application/x-shockwave-flash" width="600" height="400"></embed></object>

New:

<param name="movie" value="http://www.mapsofwar.com/images/EMPIRE17.swf"></param><embed src="http://www.mapsofwar.com/images/EMPIRE17.swf" type="application/x-shockwave-flash" width="400" height="266"></embed>

After you delete these tags, reinsert the new code into your website.

Save your changes, and problem solved!

 

 

spacer

Most Popular
Small Arrow
Small Arrow
Small Arrow

LIBRARY
Library

The best war maps from across the world wide web.

> Go to List

 

left footer   right footer