# Add scroll to swf object in html

**URL:** https://forum.kirupa.com/t/add-scroll-to-swf-object-in-html/239555
**Category:** web dev
**Created:** [September 23, 2007, 10:42am UTC](https://forum.kirupa.com/t/add-scroll-to-swf-object-in-html/239555 "2007-09-23T10:42:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![exit](https://avatars.discourse-cdn.com/v4/letter/e/e19adc/32.png) [@exit](https://forum.kirupa.com/u/exit)
#### Post date: [September 23, 2007, 10:42am UTC](https://forum.kirupa.com/t/add-scroll-to-swf-object-in-html/239555/1 "2007-09-23T10:42:10Z")

</div>

Hi :h:

Im am new to using swf object in html. So if you know how to add scroll to the swf object if the screen size is smaller than 1000 x 600 I would be very thankful.

My html file looks like this:

\<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “[http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd](http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd)”\>  
\<html xmlns=“[http://www.w3.org/1999/xhtml](http://www.w3.org/1999/xhtml)” xml:lang=“en” lang=“en”\>  
\<head\>  
\<title\>title\</title\>  
\<meta http-equiv=“content-type” content=“text/html; charset=utf-8” /\>  
\<script type=“text/javascript” src=“swfobject/swfobject.js”\>\</script\>  
\<script type=“text/javascript” src=“swfaddress/swfaddress.js”\>\</script\>  
\<style type=“text/css”\>  
/\* hide from ie on mac \*/  
html {  
height: 100%;  
overflow: hidden;  
}  
#flashcontent {  
height: 100%;  
}  
/\* end hide \*/  
body {  
height: 100%;  
margin: 0;  
padding: 0;  
background-color: #FFFFFF;  
font: 76% Arial, sans-serif;  
}  
\</style\>  
\</head\>  
\<body\>  
\<div id=“flashcontent”\>  
\<strong\>In order to view this page you need JavaScript and Flash Player 8+ support!\</strong\>  
\</div\>  
\<script type=“text/javascript”\>  
// \<![CDATA[  
var so = new SWFObject(‘index.swf’, ‘index’, ‘100%’, ‘100%’, ‘8’, ‘#FFFFFF’);  
so.useExpressInstall(‘swfobject/expressinstall.swf’);  
so.addParam(‘menu’, ‘false’);  
so.write(‘flashcontent’);  
// ]]\>  
\</script\>  
\</body\>  
\</html\>
