| | |
Display a .swf file as header
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Apr 2007
Posts: 45
Reputation:
Solved Threads: 0
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
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
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
lets say that your have a div tag in your html that containt the header
html Syntax (Toggle Plain Text)
<div id="header"> <object width="550" height="400"> <param name="movie" value="somefilename.swf"> <embed src="path to your .swf file" width="550" height="400"> </embed> </object> </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.
![]() |
Similar Threads
- PLS I NEED YOUR HELP! Help on Reading and Editing of already Written CODE on php! (PHP)
- Help me with my myspace clone (PHP)
- Logo on top of header out of alignment (HTML and CSS)
- Open In New Window Php (PHP)
- I NEED HELP PLEASE:Warning: mysql_num_rows(): (PHP)
- I NEED HELP PLEASE:Warning: mysql_num_rows(): (MySQL)
- Warning: mysql_num_rows(): (PHP)
Other Threads in the ASP.NET Forum
- Previous Thread: Could not load file or assembly 'Microsoft.Office.Interop.Word
- Next Thread: XMLTextReader cannot read file from disk
| Thread Tools | Search this Thread |
.net 2.0 ajax alltypeofvideos appliances application asp asp.net bc30451 beginner box browser button c# cac checkbox class commonfunctions control countryselector dataaccesslayer database datagridview datagridviewcheckbox datalist deployment development dgv dialog dropdownlist dynamic dynamically edit embeddingactivexcontrol expose feedback fileuploader fill findcontrol flash form formatdecimal formview gridview gudi iis javascript listbox login microsoft mouse mssql news novell numerical opera panelmasterpagebuttoncontrols parent problem radio redirect registration relationaldatabases reportemail save schoolproject search security select sessionvariables silverlight smartcard smoobjects software sql sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos vista visualstudio vs2008 web webapplications webdevelopemnt webdevelopment webprogramming webservice wizard xsl youareanotmemberofthedebuggerusers





