In an article (<!-- m --><a class="postlink" href="http://www.weeklystandards.com/archives/2004/05/12">http://www.weeklystandards.com/archives/2004/05/12</a><!-- m -->) I've recently read about elastic layouts, the author talks about how it looks bad if only parts of the page resize, but not the header. He goes on to discuss using Flash, which can dynamically resize (<!-- m --><a class="postlink" href="http://www.weeklystandards.com/articles/05122004/index.html">http://www.weeklystandards.com/articles ... index.html</a><!-- m -->) itself, as the image, and using ems for the widths and heights of that, so it can resize along with everything else. However, he used an <object> tag for the flash file, which detracts from two things: One being seperation of presentation and content, and the second being it doesn't allow for CSS to control the SWF file being used. I would like to know if there's a way to use a SWF, or other Flash file as a background for an element, in the context of #header { background: url(test.swf); } I've tried simply doing that, (Shea image replacement if that's relevant), but the SWF file didn't show at all. Does anyone know any workarounds, or anything..?
EDIT: Typo with VBCodeI wouldn't worry much about it because the content IS the presentation in your scenario and since flash is controlling it all for your header. In this kind of design the swf wouldn't be a background.Ray, the main reason I have a site is to learn webdesign, so I try to 'worry about' everything. As for presentation being content, I have some content on my site, just not much; my site does have something of a point.
The SWF would take the place of the JPEG in my header, so, yes, it would be the background. I plan to have multiple schemes once T35 clears up it's issues with header functions, I'll put up the scheme switcher (already coded), as well as the 2 other styles (one fluid and one elastic), and I don't want the same header on 3 schemes.
This is one situation where an alternate doesn't cut it. A workaround, or some kind of JS solution (a la Suckerfish) is needed. It isn't a critical thing, but I think that if there was a way, it'd be a step up in elastic and fluid designs.Perhaps Shaun (<!-- m --><a class="postlink" href="http://www.shauninman.com/mentary/past/ifr_an_fir_alternative.php">http://www.shauninman.com/mentary/past/ ... native.php</a><!-- m -->) would be able to help you?Originally posted by omega
Ray, the main reason I have a site is to learn webdesign, so I try to 'worry about' everything. As for presentation being content, I have some content on my site, just not much; my site does have something of a point.
I think you misunderstand me. My comment was not about your site as a whole, it was about a flash header; nothing else.
The SWF would take the place of the JPEG in my header, so, yes, it would be the background.
And I don't understand exactly how you will accomplish this. Will CSS accept an object reference or even a straign *.swf URL in the background url() attribute?Alright, Ray. Sorry I got a little snappy. As for using it in the background() attribute, that's what I want to know how to do.
Sam- that looks like a pretty good article, I'll look into it, Thx.You can't use it as a background. Note that background:url(file.jpg) is the same as background-image:url(file.jpg); It will only take images as arguments.Alright... then I guess this is a fully JS question, because I'm going to have to write out the flash HTML with JS, and write the link to the script with PHP...Two years since the last comment... things may have changed... so, does anyone know of a method to embed a .swf file as background-image of a div?Two years since the last comment... things may have changed... so, does anyone know of a method to embed a .swf file as background-image of a div?
I'm also looking for this. I have an external css file to do the layout of my page, put I need a way to put a flash as the header, any way. The site generates all the pages from the css file.you can possibly try a mod rewrite to change the swf file to a .jpg file?
change the file extension to make it a .jpg extension??
but im not sure if that will still work..
EDIT: Typo with VBCodeI wouldn't worry much about it because the content IS the presentation in your scenario and since flash is controlling it all for your header. In this kind of design the swf wouldn't be a background.Ray, the main reason I have a site is to learn webdesign, so I try to 'worry about' everything. As for presentation being content, I have some content on my site, just not much; my site does have something of a point.
The SWF would take the place of the JPEG in my header, so, yes, it would be the background. I plan to have multiple schemes once T35 clears up it's issues with header functions, I'll put up the scheme switcher (already coded), as well as the 2 other styles (one fluid and one elastic), and I don't want the same header on 3 schemes.
This is one situation where an alternate doesn't cut it. A workaround, or some kind of JS solution (a la Suckerfish) is needed. It isn't a critical thing, but I think that if there was a way, it'd be a step up in elastic and fluid designs.Perhaps Shaun (<!-- m --><a class="postlink" href="http://www.shauninman.com/mentary/past/ifr_an_fir_alternative.php">http://www.shauninman.com/mentary/past/ ... native.php</a><!-- m -->) would be able to help you?Originally posted by omega
Ray, the main reason I have a site is to learn webdesign, so I try to 'worry about' everything. As for presentation being content, I have some content on my site, just not much; my site does have something of a point.
I think you misunderstand me. My comment was not about your site as a whole, it was about a flash header; nothing else.
The SWF would take the place of the JPEG in my header, so, yes, it would be the background.
And I don't understand exactly how you will accomplish this. Will CSS accept an object reference or even a straign *.swf URL in the background url() attribute?Alright, Ray. Sorry I got a little snappy. As for using it in the background() attribute, that's what I want to know how to do.
Sam- that looks like a pretty good article, I'll look into it, Thx.You can't use it as a background. Note that background:url(file.jpg) is the same as background-image:url(file.jpg); It will only take images as arguments.Alright... then I guess this is a fully JS question, because I'm going to have to write out the flash HTML with JS, and write the link to the script with PHP...Two years since the last comment... things may have changed... so, does anyone know of a method to embed a .swf file as background-image of a div?Two years since the last comment... things may have changed... so, does anyone know of a method to embed a .swf file as background-image of a div?
I'm also looking for this. I have an external css file to do the layout of my page, put I need a way to put a flash as the header, any way. The site generates all the pages from the css file.you can possibly try a mod rewrite to change the swf file to a .jpg file?
change the file extension to make it a .jpg extension??
but im not sure if that will still work..