I need some expert help

it is regarding using javascript to calculate the screen.width and height
then using the variables to place the flash right smack in the centre…

so this is what i have so far


<script language="JavaScript">
<!--
function placeFlash ()
{
var top2 = Math.round((screen.Height - 400) / 2);
var left2 = Math.round((screen.Width - 600) / 2);
document.write("<the entire object codes that flash produced>");
}
//-->
</script>

<body onLoad="placeFlash()">

i believe it is not correct to use document.write to do such a things? But i dunno any either codes in javascript…
:frowning:

can someone help me with this? or is it impossible?

ehmm … use [ php ] and [ /php ] tags to show your code :slight_smile:

eudora, if you want to place your flash movie dead center of the browser then set it into a table code like this:

<table width="100%" height="100%">
<tr><td width="100%" height="100%" align="center" valign="middle">

flash embed code here

</td></tr>
</table>

*Originally posted by electrongeek *
**eudora, if you want to place your flash movie dead center of the browser then set it into a table code like this:

<table width="100%" height="100%">
<tr><td width="100%" height="100%" align="center" valign="middle">

flash embed code here

</td></tr>
</table>

**

thanks!
that was what i needed! :slight_smile:

and will remember abt the php codes next time
:wink: