# Movie size

**URL:** https://forum.kirupa.com/t/movie-size/14650
**Category:** Uncategorized
**Created:** [February 28, 2003, 10:21pm UTC](https://forum.kirupa.com/t/movie-size/14650 "2003-02-28T22:21:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![finch21](https://avatars.discourse-cdn.com/v4/letter/f/46a35a/32.png) [@finch21](https://forum.kirupa.com/u/finch21)
#### Post date: [February 28, 2003, 10:21pm UTC](https://forum.kirupa.com/t/movie-size/14650/1 "2003-02-28T22:21:07Z")

</div>

hi, im wanting to retain a certain swf movie size, which prevents the user from enlarging it. mi movie now is 500x300 pixelz now. i want it 2 stay this size wen itz loaded off tha index page. any ideas  
thanx

eg.[http://www.yamodesign.com/fond.html](http://www.yamodesign.com/fond.html)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 1, 2003, 5:56am UTC](https://forum.kirupa.com/t/movie-size/14650/2 "2003-03-01T05:56:36Z")

</div>

Howdy…

The method that example site uses is called JavaScript… They use JavaScript to open a new window, when Enter button is pressed, in a fixed size with no additional features of the window such as menubar, scrollbar, resize button and such…

You could do the samething by using the JavaScript’s window.open() method… Here is what you need to do… Go back to that site where it says ENTER at the bottom… Do the view source of the page from your web browser… (View-Source in IE6) and see the codes in there… There is a JavaScript function called ‘centerPopup()’ which goes like…

```php
function centerPopUp(theURL,winName) { 
	features ='status=no, resizable=no, scrollbars=no ,width=760,height=500';
	if(window.screen){
		var left = (screen.width-760)/2;
		var top = (screen.height-500)/2;
		features+=',left='+left+',top='+top;
	}
	window.open(theURL,winName,features);
}

```

and that’s been used like this…

```php
<a href="fond.html" onClick="centerPopUp('flash.html','')" >

```

So… Read over the source code and open up your JavaScript book to read and understand what’s in the code… =)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 1, 2003, 6:02am UTC](https://forum.kirupa.com/t/movie-size/14650/3 "2003-03-01T06:02:30Z")

</div>

thanx man datz real useful :)i didnt know java was involved

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 1, 2003, 6:06am UTC](https://forum.kirupa.com/t/movie-size/14650/4 "2003-03-01T06:06:01Z")

</div>

No problem… It’s not Java though… Java and JavaScript are two different things… =)
