Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Css to display swf

Status
Not open for further replies.

Wulfgen

Technical User
Dec 31, 2004
283
US
I have been using some css to display an image in a <div> area using this syntax: #secondary_top {background-image:url(images/banners/secondary_top.jpg); background-repeat:no-repeat; background-position:top right;}

But... is it possible to have a swf file with the same dimensions, load instead? using css? If so... how can it be done? the image is 552wide x 182high (pixels)

Anybody..........?
 
Flash is embedded with object tags, you can size your div container and load the flash object inside a div but you can not use css to load flash.
Some code to embed flash.
Code:
<object width="" height="">
<param name="movie" value="yourmovie.swf">
<embed src="yourmovie.swf" width="" height="">
</embed>
</object
You can place the code inside a div. While this is probobly the most common method I would also recommend using the swf object javascript found at this link
It is probobly the best method I encoutered while looking for flash embed techniques.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top