PDA

View Full Version : Why doesnt my table with swf centre?


eyeronik
07-26-2005, 02:49 PM
I'm pulling my hair out here I really am. For some reason on loading my webpage doesnt centre, it just sits wierdly. Why on earth would it do this? On refresh it centres itself. Why!??!

http://homepage.ntlworld.com/spensley/index2.htm

Click it, it wont be in the centre. Then refresh and it will be. How can I fix this?

Or is it working okay for you? maybe its just my machine? does it move slightly when you refresh or is it going in the center when you click the link already?

UPDATE:

Doesnt look like anyone is going to solve this. I have tried using layers instead and that has centered it using a layer center extension (as css vertical centering is an absolute nightmare and dont let anyone tell you otherwise) This seems to work. Weird though how tables dont

UPDATE:

:( when you click refresh sometimes it goes mad! and the title bar flickers like mad as its tries to center it! hooray! DOES NOTHING WORK PROPERLY!!!!!!!!!!!ARGHHHH

:(:(:(:(:(:(:(:(:(

UPDATE:

The fun continues! I have just made a layer center with css (or rather used some tutorial source) and this works fine and dandy, but not. It pushes the content off screen on 800x600.................argh

acolyte
08-01-2005, 11:38 PM
Just try this ,

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="styles/bkgr_styles.css">
</HEAD>
<Body>
<center>
<div align="center">
<table class="centerTable">
<tr>
<td valign="middle" align="center">
<div id="jslayer" align="center">
</div>
<object type="application/x-shockwave-flash" data="index.swf" width="728" height="500" id="mymovie">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="index.swf">
<param name="quality" value="low">
<param name="menu" value="false">
<param name=bgcolor VALUE=FFFFFF>
<param name="FlashVars" VALUE="movieid=mymovie">
<p>You need the Flash plugin.</p>
<p<a href="http://www.macromedia.com/go/getflashplayer/">Download Macromedia Flash Player</a></p>
<embed src="index.swf" width="951" height="704" align="top" quality="high" bgcolor="#000000" **FlashVars="deepLink=Home"** BASE="../" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</td>
</tr>
</table>

</div>

</center>

</Body>

</html>

inhan
08-13-2005, 11:35 PM
What I do first is to open a 1-celled (1 row, 1 column) chart, having its width and hight of 100%.
Then I locate the swf inside the cell and align the table to the center (of the page) which makes the code
<table width="100%" height="100%" border="1" align="center">

inhan
08-13-2005, 11:36 PM
Lastly I choose the cell and align the content centered (as if it were some text, for example):
<table width="100%" height="100%" border="1" align="center">
<tr>
<td><div align="center">
<object classid="clsi......
</div></td>
</tr>
</table>