Technology Support Desk | Take Control of Technology » Wordpress Tips » How to add your own custom Flash SWF Banner to your WordPress Blog header in 5 easy steps
How to add your own custom Flash SWF Banner to your WordPress Blog header in 5 easy steps
February 12th, 2010 | 2 Comments
This post will help you create your own Flash Banner that will add style to your site
You can see an example of my flash banner at http://www.britishblueshorthair.com
Step 1 – First you must know your template header size in order to calculate the pixel size to design your own Flash Banner. If your using a WordPress template that someone else has designed you can usual find the header size in the style.css file that’s located in the root of your theme.
Location e.g. – ftp://YOUR-DOMAIN-NAME/httpdocs/wp-content/themes/YOUR-THEME-NAME/style.css
my style.css header details are as follows
{++++}
div.art-Header
{
margin: 0 auto;
position: relative;
z-index:0;
width: 944px;
height: 185px;
Step 2 – Now you know the size of your header you can create your Images and then produce a Flash banner using – Adobe Flash, Xara Xtreme Pro 5 or any other flash application.
Step 3 – Once your flash design is complete you must upload the file to your website template image area location.
Add to – e.g. – ftp://YOUR-DOMAIN-NAME/httpdocs/wp-content/themes/YOUR-THEME-NAME/images/YOUR-BANNER.swf
Step 4 – If you don’t have a copy of the swfobject.js script already in your route of your template theme you will also need to download from - http://code.google.com/p/swfobject/
Add to – e.g. – ftp://YOUR-DOMAIN-NAME/httpdocs/wp-content/themes/YOUR-THEME-NAME/swfobject.js
Step 5 – Now you must insert the following code into your header.php under the “div” parameter as per your style.css sheet. The code is also setup to detect if the internet browser accessing your site doesn’t don’t have flash installed and will create a flash button with a link to the Adobe Flash download site.
Header.php lcoation e.g. – ftp://YOUR-DOMAIN-NAME/httpdocs/wp-content/themes/YOUR-THEME-NAME/header.php
———————-code start——————————–
“THIS IS MY DIV FROM MY style.css” <div>
“EDIT THE RED TEXT AND REPLACE WITH YOUR DETAILS”
<head>
<title></title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
<script type=”text/javascript” src=”swfobject.js”></script>
<script type=”text/javascript”>
swfobject.registerObject(“Header”, “9.0.0″);
</script>
</head>
<body>
<div>
<object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ width=” YOUR-IMAGE-WIDTH ” height=” YOUR-IMAGE-HIGH “>
<param name=”movie” value=”http:// YOUR-DOMAIN-NAME /wp-content/themes/ YOU-THEME /images/ YOUR-BANNER.swf” />
<!–[if !IE]>–>
<object type=”application/x-shockwave-flash” data=”http://YOUR-DOMAIN-NAME/wp-content/themes/YOU-THEME/images/YOUR-BANNER.swf” width=”YOUR-IMAGE-WIDTH” height=”YOUR-IMAGE-HIGH“>
<!–<![endif]–>
<p>Click the logo to install Adobe Flash Player plug-in to display this website correctly.</p>
<p>Flash player is an essential plug-in tool for your web browser in order to display graphical images on most websites.</p>
<a href=”http://www.adobe.com/go/getflashplayer”>
<img src=”http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif” alt=”Get Adobe Flash player” />
</a>
<!–[if !IE]>–>
</object>
<!–<![endif]–>
</object>
</div>
</body>
<head>
———————-code end——————————–
You can see an example of my banner at http://www.britishblueshorthair.com
Related posts:
- WordPress Easy Peasy Adsense plugin released
- 25% off WP-Member WordPress membership software
- Moving a WordPress site from one domain to another
- Uploading a plugin to WordPress SVN using Tortoise
- WordPress Logo Branding Plugin Available
Filed under: Wordpress Tips · Tags: Flash Banner, Flash Header, Wordpress, wordpress flash banner, Wordpress flash image
2 Responses to "How to add your own custom Flash SWF Banner to your WordPress Blog header in 5 easy steps"
Leave a Reply
Login
Categories
- AV (1)
- Backup (1)
- Citrix (2)
- Computer Tips and Tricks (39)
- Featured (21)
- iphone (8)
- Mobile Devices (8)
- Mobile Technology (7)
- mybb (1)
- openx (1)
- PHPBB (13)
- PHPBB Tips (14)
- Printers (1)
- seo (6)
- Technology Tips (28)
- TomTom (1)
- Uncategorized (1)
- Webhosting (7)
- Webmaster (2)
- Wordpress (2)
- Wordpress Tips (15)
Blogroll
Archives
- May 2012 (2)
- February 2012 (1)
- November 2011 (1)
- May 2011 (3)
- April 2011 (3)
- March 2011 (1)
- February 2011 (1)
- January 2011 (2)
- November 2010 (4)
- October 2010 (3)
- September 2010 (13)
- August 2010 (1)
- July 2010 (2)
- June 2010 (3)
- May 2010 (6)
- April 2010 (5)
- March 2010 (15)
- February 2010 (10)
- January 2010 (4)
- December 2009 (5)
- November 2009 (2)
- October 2009 (6)
- September 2009 (7)
Tags
Most commented
- Delete URL Website Field from Wordpress Comments Form
- Home CCTV security on the cheap
- Install Webmin on Ubuntu
- 25% off WP-Member Wordpress membership software
- How to add your own custom Flash SWF Banner to your WordPress Blog header in 5 easy steps
- HP DesignJet Plotter 500 - Severe error 0X3010002, task: tMech, File: sequence.c, Line: 758
Recent Articles
- iPhone 4s IOS 5.1.1 Update Bug (Volume Control | Ringer | Text Alerts Not Working)
- Turn your old wireless router into a new router using DD-WRT
- USB Flash Pen Backup | USB Pen Drive Backup
- Free Mobile Spy App Software Trial
- SOTI MobiControl | Force a DATA GPRS, 3G connection on reset – Windows Mobile Device
- SOTI MobiControl Exchange ActiveSync Configuration Policy Not Applying
Tag Cloud
99p adsense affordable andthenhost andthenhost.com arfooo boost cheap citrix Design directory easy exchange forum free free hosting free web hosts google google adwords help hosting iphone links linux commands logo microsoft mobicontrol outlook own PHPBB phpbb forum plugin security seo server 2008 soti ssh Ubuntu ubuntu server voucher web hosting Webmin Website Wordpress wordpress plugins6 guests, 6 bots, 2 members
Max visitors today: 16 at 03:00 pm BST
This month: 26 at 05-15-2012 11:35 pm BST
This year: 58 at 02-27-2012 03:39 pm GMT
All time: 63 at 07-20-2011 03:55 pm BST












Twitter
Are you going to be making this into a plugin?
if the wife gives me some time of the DIY i may look at putting this into a simple wordpress plug-in