# Using the JavaScript fix for embedding Flash with percentages

**URL:** <https://forum.kirupa.com/t/using-the-javascript-fix-for-embedding-flash-with-percentages/191464>\
**Category:** web dev\
**Created:** [June 20, 2006, 6:20pm UTC](https://forum.kirupa.com/t/using-the-javascript-fix-for-embedding-flash-with-percentages/191464 "2006-06-20T18:20:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BigDukeyDog](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@BigDukeyDog](https://forum.kirupa.com/u/BigDukeyDog)\
**Post date:** [June 20, 2006, 6:20pm UTC](https://forum.kirupa.com/t/using-the-javascript-fix-for-embedding-flash-with-percentages/191464/1 "2006-06-20T18:20:13Z")

</div>

Is there any way to use percentages with the fix found here:

[http://www.kirupa.com/developer/flash8/flash\_fix.htm](http://www.kirupa.com/developer/flash8/flash_fix.htm)

I’ve tried putting in percentages and stuff so that my code looks like this:

\<script type=“text/javascript” src=“flashobject.js”\>\</script\>  
\<div id=“flashcontent” style=“width: 100%; height: 100%”\>\</div\>  
\<script type=“text/javascript”\>  
var fo = new FlashObject(“MIHIntro2.swf”, “animationName”, “100%”, “100%”, “8”, “#FFFFFF”);  
fo.addParam(“allowScriptAccess”, “sameDomain”);  
fo.addParam(“quality”, “high”);  
fo.addParam(“scale”, “noscale”);  
fo.addParam(“loop”, “false”);  
fo.write(“flashcontent”);  
\</script\>

It doesn’t seem to be working. What I would like is for it to expand to 100% of the page. Any idears?

Thanks!
