Skip to content Skip to sidebar Skip to footer

How To Put Flash (.swf) In A Page?

i'm planning to use a .swf file as a header. this won't work. can you tell me how?

Solution 1:

Try this instead:

<objectwidth="650"height="140"><paramname="movie"value="exactheader.swf"><embedsrc="exactheader.swf"width="650"height="140"></embed></object>

Solution 2:

You should use <embed> tag to embed flash files to an html page :

<objectwidth="650"height="140"><paramname="movie"value="exactheader.swf"><embedsrc="exactheader.swf"width="650"height="140"></embed></object>

EDIT : As Russ pointed, I just found the resource why we should use both object and embed tags here.

In the code above there is both an tag and an <object> tag. This is because the tag is recognized by Internet Explorer, and Netscape recognizes the <embed> tag and ignores the <object> tag.

Solution 3:

I have found swfobject the 'best' method for embedding flash in html. It handles, version checking, alternate content, etc. Spend a few minutes getting familiar with this easy to use api: http://code.google.com/p/swfobject/

Post a Comment for "How To Put Flash (.swf) In A Page?"