Enjoy an ad free experience by logging in. Not a member yet?
Register .
08-08-2012, 07:22 PM
PM User |
#1
New to the CF scene
Join Date: Oct 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Fit a Flash SWF File to Any Screen Size
Dear Everyone, I have an SWF in an HTML page that changes its width according to the browser size - I need the height to also adjust to varying screen sizes. I've tried height:100% and other specific instructions but nothing helps. I would greatly appreciate any ideas!
Thank you! Chava Drummond
08-08-2012, 07:43 PM
PM User |
#2
Senior Coder
Join Date: Jan 2004
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 1,545
Thanks: 0
Thanked 195 Times in 191 Posts
Hi there chavad,
it would help the members here, to solve your problem if
you gave us a link to the site and or the full page code.
coothead
08-08-2012, 07:52 PM
PM User |
#3
New to the CF scene
Join Date: Oct 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Dear Coothead,
Thanks so much - I realize that and would definitely give it to you; it's just that I was asked to do this for a professional who's creating the site for a client, so I don't know if she'd be alright with anything being publicized....
What do you think we can do without seeing the code?
Thanks so much!
Chava
08-08-2012, 08:16 PM
PM User |
#4
Senior Coder
Join Date: Jan 2004
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 1,545
Thanks: 0
Thanked 195 Times in 191 Posts
Hi there chavad,
the following basic code will give a full browser "
swf "...
Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>untitled document</title>
<style>
html,body {
height:100%;
margin:0;
}
#swf-holder {
height:100%;
}
#swf-holder object {
display:block;
width:100%;
height:100%;
}
</style>
</head>
<body>
<div id="swf-holder">
<object type="application/x-shockwave-flash" data="http://www.coothead.co.uk/images/chswf.swf">
<param name="movie" value="http://www.coothead.co.uk/images/chswf.swf">
</object>
</div>
</body>
</html>
coothead
Last edited by coothead; 08-08-2012 at 11:57 PM ..
Reason: typing error!!!
08-09-2012, 01:39 AM
PM User |
#5
New to the CF scene
Join Date: Oct 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Dear Coothead,
Thank you so very, very much - your code worked for me!!!
Chava
08-09-2012, 02:48 PM
PM User |
#6
Senior Coder
Join Date: Jan 2004
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 1,545
Thanks: 0
Thanked 195 Times in 191 Posts
No problem, you're very welcome. coothead
Jump To Top of Thread
Thread Tools
Rate This Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT +1. The time now is 05:06 AM .
Advertisement
Log in to turn off these ads.