Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Gap below header


4 replies to this topic

#1 rikpotts

  • Community Member
  • 195 posts
  • Real Name:rik potts
  • Gender:Male
  • Location:Chester, UK

Posted 06 November 2009, 12:17

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?

Edited by rikpotts, 06 November 2009, 12:17.


#2 burt

  • Community Sponsor
  • 6,967 posts
  • Real Name:G Burton
  • Gender:Male
  • Location:UK/DEV/on

Posted 06 November 2009, 12:36

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.
The Dirty Little Secrets that no osCommerce template sellers want you to know...revealed...

Support is commercially available. The question is whether you value your business
highly enough to spend money on it.

For commercial support from known developers who support osCommerce
ethos, please post at http://forums.oscommerce.com/forum/79-commercial-support/

#3 rikpotts

  • Community Member
  • 195 posts
  • Real Name:rik potts
  • Gender:Male
  • Location:Chester, UK

Posted 06 November 2009, 13:30

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.

#4 KJ666

  • Community Member
  • 246 posts
  • Real Name:Kieron

Posted 06 November 2009, 14:46

That code is wrapped in <tbody> tags, take them out see what happens ?

#5 rikpotts

  • Community Member
  • 195 posts
  • Real Name:rik potts
  • Gender:Male
  • Location:Chester, UK

Posted 07 November 2009, 09:11

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.