PDA

View Full Version : Blank line between flash header & forumdisplay


Tragamin
05-11-2009, 01:28 PM
Hi everyone :cool:

I'm in the process of revamping the look of my forum, and this time I gave flash a try and made this little animated header that I've embedded using SWFobject (http://code.google.com/p/swfobject/).

Everything seemed to work out nicely, but recently I've noticed that when using Internet Explorer, a blank space comes up between the header and the rest of the page (it appeares everywhere though, not just on the index), and I can't seem to get rid of it. This only happens with IE - in Firefox, that space is removed and it looks as it should; compare the two screenshots below:

http://img149.imageshack.us/img149/7743/screenshot1ff.th.jpg (http://img149.imageshack.us/my.php?image=screenshot1ff.jpg) http://img19.imageshack.us/img19/9863/screenshot2ie.th.jpg (http://img19.imageshack.us/my.php?image=screenshot2ie.jpg)

This is the code I'm using for my header template:
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr><script type="text/javascript" src="http://www.mansonpt.com/swfobject.js"></script>

<div id="header" align="center">
<script type="text/javascript">
var so = new SWFObject("http://www.mansonpt.com/forum/flash/mpt-forumheader-preliminar.swf", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", "770", "200", "8", "#000000");
so.addParam("quality", "high");
so.addParam("salign", "t");
so.write("header");
</script>
</div>
</tr>
</table>$spacer_open
<!-- /logo -->

<!-- content table -->
$_phpinclude_outputIf anyone could be so kind as to give me a hand with this, it would be much appreciated. Thanks in advance for your time. :)

Seven Skins
05-12-2009, 09:31 PM
TD tags are missing.


<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<script type="text/javascript" src="http://www.mansonpt.com/swfobject.js"></script>
<div id="header" align="center">
<script type="text/javascript">
var so = new SWFObject("http://www.mansonpt.com/forum/flash/mpt-forumheader-preliminar.swf", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", "770", "200", "8", "#000000");
so.addParam("quality", "high");
so.addParam("salign", "t");
so.write("header");
</script>
</div>
</td>
</tr>
</table>$spacer_open
<!-- /logo -->

<!-- content table -->
$_phpinclude_output

Tragamin
05-14-2009, 10:04 PM
Steven, thank you so much for pointing that out. Sometimes we're so focused on the larger picture that we miss the smaller details - and I, not being very experienced when it comes to coding, was going crazy with this little thing.

It worked like a charm, thanks once again for helping me out! :)