mistafeesh
08-07-2007, 03:46 PM
Hi. My website has a fluid design, which I'm very happy with in general, but I've just been trying to incorporate a flash movie into it, which is also stretchy!
I've tried using an iframe to call it in, and it's fine getting it to take advantage of all the width available, but it wont stretch vertically to take advantage of all the height available...
actually I've just been and looked at the code used to call in the flash movie, and it's a bit more than that... It's a javascript too.
It's an automatically generated photo album thingy. here's the code used to call it in. I just want to put it into a stretchy table and for it to use all available space.
any ideas?
the code:
<script type="text/javascript">
// <![CDATA[
document.title = "bananalbum";
bgcolor = "#ffffff";
imgcolor = "#ffffff";
linecolor = "#000000";
txtcolor = "#000000";
respath = "res/";
var so = new SWFObject("res/BananAlbum.swf", "BananAlbum", "100%", "100%", "8", "#ffffff");
so.addVariable("jalbum", "true");
so.addVariable("bgcolor", bgcolor.replace("#","0x"));
so.addVariable("imgcolor", imgcolor.replace("#","0x"));
so.addVariable("linecolor", linecolor.replace("#","0x"));
so.addVariable("txtcolor", txtcolor.replace("#","0x"));
so.addParam("allowFullScreen", "true");
so.write("flashcontent");
// ]]>
</script>
I've tried using an iframe to call it in, and it's fine getting it to take advantage of all the width available, but it wont stretch vertically to take advantage of all the height available...
actually I've just been and looked at the code used to call in the flash movie, and it's a bit more than that... It's a javascript too.
It's an automatically generated photo album thingy. here's the code used to call it in. I just want to put it into a stretchy table and for it to use all available space.
any ideas?
the code:
<script type="text/javascript">
// <![CDATA[
document.title = "bananalbum";
bgcolor = "#ffffff";
imgcolor = "#ffffff";
linecolor = "#000000";
txtcolor = "#000000";
respath = "res/";
var so = new SWFObject("res/BananAlbum.swf", "BananAlbum", "100%", "100%", "8", "#ffffff");
so.addVariable("jalbum", "true");
so.addVariable("bgcolor", bgcolor.replace("#","0x"));
so.addVariable("imgcolor", imgcolor.replace("#","0x"));
so.addVariable("linecolor", linecolor.replace("#","0x"));
so.addVariable("txtcolor", txtcolor.replace("#","0x"));
so.addParam("allowFullScreen", "true");
so.write("flashcontent");
// ]]>
</script>