PDA

View Full Version : Shockwave and HTML


rissac
01-08-2002, 11:05 AM
I'm trying to center my Shockwave movie inside an html document but I'm not having any luck. The script I'm using is attached to a button on my splash page. Here is the spript below.

Script in Header......Movie is exactly 900x500

script language="javascript">
function NewWin(URL, WinName) {
myNewWin=open(URL, WinName, 'toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,width=900,height=500');
}
</script>


Script on button

<a href="javascript:NewWin('http://www.sergeeustache.com/FlashSite.html')"><img src="Images/Enter_Button.gif" width="121" height="28" align="left" hspace="180" border="0"></a></td>

There doesn't seem to be a way to center the movie. Does anyone know how to solve this issue. You can take a look the site an see the exact issue at http://www.sergeeustache.com. Thank you.

dave92056
01-08-2002, 11:09 AM
Do you mean center the new window that contains the Flash ie, when the new window appears it is centered in relation to the existing window? Or did I miss something?

I like the navigation by the way.

rissac
01-08-2002, 02:14 PM
I want to center the Flash movie inside of the HTML Document. If you look were the navigation bar slides, there's a gap on the left but not on the right. This is because the movie is not center in the html document. It as if the flash movie is shifted slightly to the right and downward.