rikpotts Posted November 6, 2009 Posted November 6, 2009 My includes/header.php used to have this bit of code. <tr class="header"> <td valign="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'logo.png', 'Hydro-OrganicsUK') . '</a>'; ?></td> </tr> But then I decieded I wanted a .swf file instead of the .png file so I changed the above code to..... <tr class="header"> <?php echo '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="835" height="140"> <param name="movie" value="logo.swf" /> <param name="quality" value="high" /> <param name="allowScriptAccess" value="always" /> <param name="wmode" value="transparent"> <embed src="images/logo.swf" quality="high" type="application/x-shockwave-flash" WMODE="transparent" width="835" height="140" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" /> </object>';?> </tr> But now I have a white gap below the logo.swf measuring 4px. Please see www.hydro-organicsuk.co.uk Can anyone help?
burt Posted November 6, 2009 Posted November 6, 2009 1. why put that swf code in php tags? 2. you've removed <td> tags If you do not understand html & php too well, there are some excellent tutorials on teh web, try www.w3schools.com Thus: <tr class="header"> <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="835" height="140"> <param name="movie" value="logo.swf" /> <param name="quality" value="high" /> <param name="allowScriptAccess" value="always" /> <param name="wmode" value="transparent"> <embed src="images/logo.swf" quality="high" type="application/x-shockwave-flash" WMODE="transparent" width="835" height="140" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" /> </object></td> </tr> is better formed. And it -might- solve the gap issue.
rikpotts Posted November 6, 2009 Author Posted November 6, 2009 Hi, Many Thanks for the suggestion. Unfortunately it didnt resolve my issue. Thanks for the link also. I can edit by trial and error but all this td, tr, html and php doesnt mean anything to me. I know php and html are code and if it was there before I edit then I should make sure its there after I edit. Ive added two other .swf on that page and there isnt a white gap below those, thats why im a bit lost. I took the same steps only the other .swf are contained in html.
KJ666 Posted November 6, 2009 Posted November 6, 2009 That code is wrapped in <tbody> tags, take them out see what happens ?
rikpotts Posted November 7, 2009 Author Posted November 7, 2009 Im not too sure what you mean by <tbody> but either way I removed the php tags, td tags and table tags. Still the same.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.