For many bloggers who tried setting up their flash animation (.swf) file as their blog header, simply typing the <embed> code in the blog template just doesn't seem to work and probably there's no way for you to edit the header part of your blog in the Page Elements customization.
Now there's a simple way to have a flash header without much tweaking of your template's HTML code. Login your Blogger account and head on to Layout > Edit HTML. Before doing anything please backup your template first.
Find the following code (might look a bit different for some other templates):
<div id='header-wrapper'>Change the no in showaddelement='no' to yes, this enables you to add gadgets on top of your header in the Page Elements customization in the future.
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true' title='Azure Haze (Header)' type='Header'/>
</b:section>
</div>
*optional*Change the number in maxwidgets='1' from 1 to any number you like if you want to setup more gadgets in the header part.
Remove the code coloured red, which is the current header you're using. Save template (you might be asked to confirm your Header1 deletion, just confirm) and head on to Page Elements.
Now you should be able to see the "Add a Gadget" box on the header part, click on it and add HTML/Javascript (if you don't see it, add the gadget from your sidebar, then shift it to the header).
Type in the <embed> code which looks like this (replace http://yourhost.com/yourflash.swf with the address of your .swf file):
<embed src="http://yourhost.com/yourflash.swf" loop="false" height="240" width="1300"></embed>Adjust the height and width number according to your flash size. The loop="false" code is to prevent your flash animation from repeating, so if you want your flash to be played repeatedly, remove that line. I'm pretty much sure you'll know how to deal with the rest of the code. Save the gadget and you're done.
If the flash is not in place, you might need to tweak the Header part of your template CSS stylesheet in Edit HTML that somewhat looks like this:
/* HeaderRemove the border line code to hide the header borders and do some adjustments to the CSS code to position the flash the way you like. That's all. Time to PIMP your blog, people!
-----------------------------------------------
*/
#header-wrapper {
float: left;
width: 1300px;
height: 240px;
margin:0;
padding:0;
clear: right;
background: no-repeat top left;
position:relative;
left:-170px;
}











85 comments:
What a nice article.
:D
Could you explain to me how to embed flash in the header of WordPress blog. contact me : patembe@gmail.com
:D
Thanks!
Regards,
patembe
Brilliant, works like a charm, thanks!
Glad to hear that.
Tried this (and many other methods i could find) but it wont work, i just get a white box where my .swf should be.....
Any ideas..
Have a look,
http://test-colbean.blogspot.com/
Nice post though....
What is the address/location of your .swf file? I viewed the source code and what I see is you're embedding http://yourhost.com/yourflash.swf which obviously doesn't exist. Find a host to upload your flash video and replace http://yourhost.com/yourflash.swf with the exact link of your .swf file.
Thanks for the reply, i've uploaded the file, the address is :
http://browncow5.110mb.com/blogbanner.swf
Thanks again...
I can see your flash header now, nice one.
You can see it on my blog? i still can't....just a white box (in both IE and Firefox)
I fixed it, changed my host to a direct linking host, thanks for your help...
Glad to hear that.
u r superb!!!
thnks a bunch!
can you check this one coz your giving trick not working
http://1stdatetips.blogspot.com/
Can I know what's the address/url to your flash (.swf) file please?
doesnt give me an option to insert the HTML when I 'Add a Gadget'... any ideas?
Have you try changing the in showaddelement='no' to showaddelement='yes' and remove the line maxwidgets='1'?
Thanks so much.I tried two other tutorials and yours is the only one that worked. You are the greatest!
Works Like a charm. Thanks.
I cant find anyone to host my SWF file. Any suggestions?
Try boxstr.com or hotlinkfiles.com
i try it..but somehow its load to loong..can you help me..thnks
I checked your blog (4rtw4re.blogspot.com) and what I see is that you're using blogumus as your flash header?
Hmm... Have the widget option, and I copied the embed code... and I'm using boxstr.com to host the file. Still showing up blank on the blog.
Mike Puncekar, may I know the address to your blog please?
Nvm, I got it working by using another bit of html I found on another tutorial.
embed src="Link to swf" type="application/x-shockwave-flash" height="200" width="600"
Now... if Only I could get rid of the small gap so it sits flush.
Oh, the address to my blog is mpuncekar.blogspot.com
Nice article, Thank you very much
Cheers, Worked a treat!
---
http://design-london.blogspot.com
hi haze...nice 2 found u're blog,n i'll try this tutor.couse i tired the other tutor like this before.how about to set flash menu in my new blogspot header.can u explain to me...sorry my english,i'm from Aceh-Indonesia.I hope u reply my question,thank's haze...
Thank you so much, i have been looking for this.
http://alexproperty.blogspot.com
Appreciate on your sharing.
It works well. Appreciate for your sharing
http://alexproperty.blogspot.com
I've been follow your tutor haze,when i save template blog says "not well-formed".and no add gadget for header in page element.what should i do haze,please...
getrospace, do you mind telling me your blog address, thanks.
ok haze.i try once more.i've done and works well.thank's haze...,i fell cheap telling you my address blog.becouse still in blog development.ok haze my blog address is "getrospace.blogspot.com".thank's for everything from Aceh.
I also have a flash banner... I embed it using YouTube's embed code and changing the "value" to the link to where I uploaded the .swf file... you can view my blog in here...
htpp://babydesertwolf.blogspot.com
Great blog design, great flash banner, nicely done, James.
Btw, you had a typo on your blog address, it's
http://babydesertwolf.blogspot.com
Works great! thank you very much for posting this tutorial.
Hi Dude..!
Im able 2 reduce the size of Blog Header,but still there is more white space left after the header.Please check it 1c & find the solution.This is my blog address:
http://latestsongstelugu.blogspot.com/
Thanking U in advance...
Hey, thanks so much! I thought this was going to be a major PITA, and it was so easy! I appreciate it. :-)
Hi Haze,
I tried your tutorial for many times, and even tried to do wat the others commented. but all i can get is a white patch in place of where I wanted my .swf to be.
I ended up inserting in at the bottom of my blog.
Is there anyway to go about replacing my header image with the .swf(shown right at the bottom)?
Thankz! ^^
http://deityrealm.blogspot.com
thankyou thanyou thankyou!
really simple tutorial, i tried lots of hosting... and it works, finally :D
_____________
vstmyblog
http://nutsiesfashion.blogspot.com
Hi I am trying to embed in a photoblog template, but the first change I cannot alter it says that he code is not well formed?
Hi.. i am good at photoshop...
but i dont know flash...
Do u know any software that builds header with custom size, colour, & Background..
Once visit my blog....
http://muziktouch.blogspot.com
Can i make the same banner slight vth flash animation...
I dont know flash..
Hello im Here in Japan, i really really love your template! can you give me your template code, i love you header so much! plssssssssss... Thanks!!
hi..i need help..coz ,my flash header links are not working.
can u help me pls ? ?
Thanks... and Have been added to my blog
http://www.mediatikpro.blogspot.com
Thanks so much! Works great!
Happy Holidays!
my header is blank white..
im using sites.google for my flash file..
need a litle help here..
really appreciate it..
anyway thanx for the great work.
http://www.keperemrednema.blogspot.com
Thanxxxx alot this worked 4 me thnxxxxxxxxxxxxxxxxx
Great tutorial! easy and workable method! thanks~
Hi Haze. Great tutorial indeed. Unfortunately I can not get it worked. I don't know why. Appreciate it if you can spend some time to visit my blog (my wife's blog actually) to figure out what the problem actually is. Oh I use boxstr.com to host my swf file. Thanx in advance.
http://babyaidafiqs.blogspot.com/
Hi Haze, thank you for the step-by-step tutorial. It works now in my blog. Thanks again
http://ermanthephotographer.blogspot.com
Hey.. I can't seems to get my flash to work? It just a white box.. But funnie think is when I try to load the page in another tab when the host is I can see the flash.. Can you assist to look into it? My blog is littleprincejareth.blogspot.com
Btw I can't seems to move the flash to the left. Thanks
hey.. it says i need to download plugins. i have a flash and flash player already
when we hear professional people talking we just like to respect this ....
indeed thanks alot my dear!
hi haze!
I have done but my flash file is running. I made my flash banner in swf easy software and I'm using swfupload to host my flash file and they providing me this URL after uploading my file http://www.swfupload.com/view/111929.htm
but when i use this url it's not working and i also try to replace this url with http://www.swfupload.com/my swf file name.swf and i also try other flash hosting site but the result is zero.you can visit my blog and check it what's wrog with it.please help me
my blog address: http://testi381.blogspot.com/
I am waiting for your reply.please reply me soon thnks
swfcabin.com is a good place to host your .swf files, give it a try.
In case you don't know where the .swf file is located: After you've finished uploading, you'll be given a URL with some numbers at the end of it.
http://www.swfcabin.com/swf-files/ID.swf
Replace ID with the number that is given to your swf file and you should be able to view the flash with your browser using that URL.
thanks for your post, i made my blog stunningly nice.
http://norsu-gtech.blogspot.com
ruzt
I added swf file on my header & ;itz luking absolutely gr8. Now can u help me out in linking it to a url? ;pls reach me at djock.jetix@gmail.com
Lol u play cabal? i play SEA server (Malaysia)..
Warrior : guild khalifah :
PvP? hehe.
Thank you very much! This is very helpful to me.
Hi, how do I make sure the header is in the center?
thanks.
http://say-yestofun.blogspot.com/
Hi Haze & Friends,
I Have A Rather Unusual Question...
Is It Possible To Have A Normal Picture File In Your Header on Blogger.Com - Blog & Then Place A ( .SWF ) Flash Image Over That Picture...???
What I Want Is My Picture In The Background Header And The Flash Over It, Given A Sparkly Type Effect To Bring Some Life Into The Picture.
The Blog::
http://djkenfitz.blogspot.com/
I Have Made A Video To Explain The Situation...
The Video::
http://player.vimeo.com/video/17422706
You May Need ( Adobe Flash Player ) To View The Video Content...
Any Help & Please If Any A Full Layout Of How To Accomplish This Problem Would Be Nice...
Thanks In Advance... (",
Hi DJ.KEN.FITZ,
Yes, it is possible to place a flash file over an image but you'll have to make sure that the flash itself has a transparent background. You can do this by placing the embed tag of the swf file within a div tag styled with a css background image, and within the embed tag you should include the wmode="transparent" attribute. The code should be something like this:
<div style="width:600px;height:200px;background:url(background.jpg');">
<embed src="flashmovie.swf" width="600" height="200" wmode="transparent" />
</div>
However, I think it'll be better if you could include all the glittering effect, background image and the "music 4 every1" slogan into a single .swf file, then place it on the header section. After that, you can place your h1 title link on top of the flash.
I want to take a look on your flash file, would you mind showing me the url to your .swf file?
Hi Haze & Friends, ---> Edit: From My Last Post <---
---
Thank You For Your Very Quick Response... It Is Very Much Appreciated
---
The File Is ***(Transparent)*** The Same File Was Used In The Video
---
You May View Or Download Files From Links Below.
---
*****SWFCABIN.COM*****
http://swfcabin.com/open/1291264111
---------------------------------------
If You Cannot View From The Above Link.
You Can Download It From The Link Below.
---
*****MEDIAFIRE.COM*****
http://www.mediafire.com/?kbe9oqowzpc4v4x
---
MediaFire.Com Offer Embedding Codes But I Think This Is Only For
Placing Links On Your Website Or Blog As A Download Link...?
---
I Also Made A Animated (.GIF) With An Never Ending Cycle (LOOP)
You Can View The File Here.
1st Upload
http://uploadpic.org/view-pic.php?img=118782
2nd Upload
http://uploadpic.org/view-pic.php?img=118784
---
If For Future Reference You Would Like To Make Videos Like I Did In
( Minutes ) As Well As Reply To Us Here With ( Code ) Sequences Needed
For A Particular Effect Then I Strongly Recommend For Creating Your
Videos Using ( Camtasia Studio ) And Visiting
---
http://vimeo.com/
To Upload Your Videos And Receive (HD) High Definition Results
For Your Viewers...
---
I Hope This Helps You As You Are Very Helpful To Us All And
I Appreciate Your Efforts... (",
---
Thank You Haze, Thank You Friends.
you super
hi Haze,
can you try to give me any software or tool to create flash banner plzzzzz.
hi haze,
Actually i want a flash banner creator software...or can u tell me where can i find it.
is there a way to change the speed?
thanks a lot friend, it work in my blog :)
http://suara-panggil-walet.blogspot.com
finally i could get the flash to work
I hope this can help
embed src="http://www.shareswf.com/media/games/swf/12132.swf" type="application/x-shockwave-flash" height="150" width="250"></embed
But i cant get blogomus to work.can ny1 help?
http://1testaze.blogspot.com/
I successfully achieved my desired results,
Just upload your swf file to http://www.shareswf.com, get the code at the top right side and paste it in the html/javascript box on your blogger....Thanks for such an informative post......
http://eguldasta.blogspot.com/
yoooo
Nice tutorial. I will recommend it for BannerDroid users!
I really admire your flash banner header. I just did mine got from vortex, it looks great but very small. I want a much bigger one.
Anyway, Thank you for the great tutorial.
Its not working with my blog: http://www.tallyssolution.blogspot.com
Flash link is http://www.ziddu.com/download/16567398/TutorialsFlashMovie.swf.html
Hi,Haze!
I did follow your instruction, but i cannot see my flash. it just said "click here to download plugin". What shall i do?????
I hosted my swf at http://megaswf.com/serve/1181865
wanna see how do we embed flash on blogger header??? camdocs.blogspot.com
amazing.......this above add is my blog. and i can now use flash in my blogger header.
just host you swf first(i host mine at shareswf.com)
Very very usefull article..i like it too much..bye
thank you
You are the greatest thanxxxxxxxxxxx thanxxxxx
When I remove the code coloured red and then try to save tamplate, an error box appears. What can I do?
got it..got it......brilliand..mindblowing... loved it..
check here.. grabbitee.blogspot.com
Woo... nice flash design. Need to make design, wish to your success.Fotoclipping
Thanks for sharing the resources & tutorials, some were of great help in my current projects, nice work.
hey haze u rock man u are the one because i have searching for this article for an hour on google and then i found this and its amazing but i have a question can u
i am replacing the code
but when i go to save it gives an error in blogger .can u fix it i will be very thankful to u.
i am using swf link http://funkyinme.sharepoint.com/TeamSite/Documents/myflash2.swf
thanks in advance
Greate Design site. I’m glad I’ve found this site earlier this year, I have safely booked marked this page. Thank You, once again! Fotoclipping