eudora
February 23, 2003, 1:52am
1
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…
can someone help me with this? or is it impossible?
system
February 23, 2003, 2:03am
2
ehmm … use [ php ] and [ /php ] tags to show your code
system
February 23, 2003, 2:08am
3
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>
system
February 23, 2003, 2:54am
4
*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!
and will remember abt the php codes next time