How to Insert Flash File into Header of Your WordPress?

Share this Article :


Most of weblog owners are keen  to insert  Flash file into Header of the blog or wordpress website.

Here is the simplest tutorial  to replace your  Header Image file  into  Flash File in your wordpress website or blog.

1. Take a sample page of your wordpress blog or website  by  browsing into any one of the page,   Take the source of the page  and  copy it and  name it as  sample.php in your working directory.

2. Now, using Dreamweaver  open  sample.php  and  insert an  flash file into that  sample.php .  Dreamweaver will automatically  updates the required  Javascript code inserting into the sample.php file  along with the  SWF  Code in the page.

3.  Now,  Its  time to Edit the Code back  in the sample.php  file,  Goto Code View of the page   and  Apply  changes  as follows.

a. Change the Path  of  Flash Banner.  i.e  If your  Flash file name is  header.swf    Upload  it  to your working directory  and give away the path at the yellow spots  like  /workingdir/header ( only at the noscript  block  you have to specify the extension of .swf )

b.  Change the  width and height  of the  flash banner accordingly

4.  Its almost  Done …  Time to Tweak  your  Theme files

Open Header.php from your theme directory   and place the  following code below in the Head Section

<script src="<?php bloginfo('template_url'); ?>/Scripts/AC_RunActiveContent.js" type="text/javascript"></script>

Do not forget to copy back all the Scripts Folder Generated by Dreamweaver to the Theme Folder

Place back the Code what we have changed in the step 3 into the Required Flash Div

<div id="flash">
 
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','970','height','248','title','Adventure Huts','src','/wpadventure/wp/header','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','/wpadventure/wp/header' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="970" height="248" title="Adventure Huts">
  <param name="movie" value="/wpadventure/wp/header.swf" />
  <param name="quality" value="high" />
  <embed src="/wpadventure/wp/header.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="970" height="248"></embed>
</object>
</noscript>
</div>

Now Run the WordPress .. You will get it

Written by admin

{admin has written 3699 posts on ITTreats.com . See all posts by }


Leave a Reply