Display a .swf file as header

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2007
Posts: 45
Reputation: Eager_Beever is an unknown quantity at this point 
Solved Threads: 0
Eager_Beever Eager_Beever is offline Offline
Light Poster

Display a .swf file as header

 
0
  #1
May 7th, 2009
I have an ASP. Net 2.0 website with C# 2005 as the programming language. I am using CSS for the layout. Currently I am using a plain/static .Gif image as my header. I would like to enhance the look by using some animation in the header. I used some flash utilities to design my required animated banner. But since I was unable to use the .swf file directly I converted it to .Gif which I am able to use and display. The problem is the original .swf file was of the size around 75 Kb whereas the converted .Gif file is huge (around 4.5 Mb). I want to display the original .swf file to improve speed.

I have used the CSS stylesheet to display the .Gif animated banner. I don't know how can I use the .Swf file directly.

Kindly guide me.

Thank You.

Lalit Kumar Barik
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 186
Reputation: jbisono is an unknown quantity at this point 
Solved Threads: 24
jbisono's Avatar
jbisono jbisono is offline Offline
Junior Poster

Re: Display a .swf file as header

 
0
  #2
May 7th, 2009
well as far i know you cannot call the .swf from your css, the .swf file have to be embed right into the html file or aspx file. go to this link to know how to do that http://www.w3schools.com/flash/flash_inhtml.asp

lets say that your have a div tag in your html that containt the header
  1. <div id="header">
  2. <object width="550" height="400">
  3. <param name="movie" value="somefilename.swf">
  4. <embed src="path to your .swf file" width="550" height="400">
  5. </embed>
  6. </object>
  7. </div>
Last edited by peter_budo; May 9th, 2009 at 1:02 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC