adsense

How to Embed SWF in WordPress Posts





1. Log in to the WordPress dashboard at the 'wp-admin' directory of your website. Navigate to 'Posts' and select a post to edit by clicking its name. Click the 'Add New' button instead if you want to create a new post.
2. Switch to the HTML editing mode by clicking the 'HTML' tab at the top of the editor box on the 'Edit Post' screen. Add a pair of '
' tags where you want to embed the SWF file in your post:



3. Add the 'classid' attribute, along with the class ID for the Adobe Flash player, to your '
' tags:


4. Set the width, height and ID of the SWF object within the opening '
' tag:


5. Add a '
' tag inside your '
' tags:
Change 'movie_name.swf' to the name of your SWF file. If the file is in a different directory of your website, you must include the directory path as well. Everywhere you see 'movie_name.swf' in the code, including code in later steps, you need to make this change.
6. Place the following code between your '
' tags to support Internet Explorer browsers:
-->


Remember to change 'movie_name.swf' to the path to your SWF file.
7. Add the following code after your Internet Explorer code so visitors without Adobe Flash installed will get a link to download the application:



8. End the '
' tag you created for Internet Explorer after the code for the download link:
-->


9. Click the blue 'Update' or 'Publish' button, depending on whether your post is new. Go to 'View Post' to open the post in a new tab of your browser and see the embedded SWF file. You can switch between the HTML and Visual tabs of the post editor because the object code you inserted is valid XHTML. WordPress strips out invalid tags like iFrames.

Comments

0 Responses to "How to Embed SWF in WordPress Posts"

Post a Comment

Popular Posts

About