Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Why is swf images not centering?


offie

Recommended Posts

Posted

Hi, I have embedded a .swf image on my home page of topclassfurniture.co.uk.

 

I have tried various code changes by trial and error method on my index.php file to try and center the flash images and also remove the white space above the flash images but no matter what I change or remove the images stay to the right of the page and when I increase the image size it pushes the info boxes to the right off the page off the main index page.

 

Here is a snippet of the code I have used:

 

 	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	<tr> 

	<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="550" height="350">
	<param name="movie" value="jati.swf">
	<param name="quality" value="high">
	<embed src="jati.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="350"></embed></object></td>
		 </tr>

		 <tr>
		 	<td class="main"><?php echo tep_customer_greeting(); ?></td> 
	</tr>

 

Thanks in advance for any help.

 

Michael

Posted

Try the following:

 

        <td><table align="center" border="0" width="100%" cellspacing="0" cellpadding="0">        <tr>                 <td align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="550" height="350">        <param name="movie" value="jati.swf">        <param name="quality" value="high">        <embed src="jati.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="350"></embed></object></td>                         </tr>                                                  <tr>                                <td class="main"><?php echo tep_customer_greeting(); ?></td>         </tr>

Posted

Try the following:

 

 <td><table align="center" border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="550" height="350"> <param name="movie" value="jati.swf"> <param name="quality" value="high"> <embed src="jati.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="350"></embed></object></td> </tr> <tr> <td class="main"><?php echo tep_customer_greeting(); ?></td> </tr>

 

Thanks for the advice Hal. Unfortunately it did not do the trick.

 

I am not sure what it is but there is something in the code that is pushing this down and to the right but I cant seem to find out what.

 

Perhaps if I showed more of the index.php file it may become more apparent, what do you think?.

 

I appreciate your help in this matter.

 

Michael

Posted

Hello Michael,

 

Sure, if you want to send the whole code that's fine. Also, if you pm me your url so I can see what it's looking like and I can look at the source code in a browser, I may be able to figure it out. Another thing you may want to try...

 

Take the code out and place it in your language file instead.

 

catalog/includes/languages/english.php

 

Find:

 

define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?');

 

Replace it with:

 

define('TEXT_GREETING_GUEST', '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="550" height="350">

<param name="movie" value="jati.swf">

<param name="quality" value="high">

<embed src="jati.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="350"></embed></object><br><br>Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?');

Posted

Hello Michael,

 

Sure, if you want to send the whole code that's fine. Also, if you pm me your url so I can see what it's looking like and I can look at the source code in a browser, I may be able to figure it out. Another thing you may want to try...

 

Take the code out and place it in your language file instead.

 

catalog/includes/languages/english.php

 

Find:

 

define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?');

 

Replace it with:

 

define('TEXT_GREETING_GUEST', '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="550" height="350">

<param name="movie" value="jati.swf">

<param name="quality" value="high">

<embed src="jati.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="350"></embed></object><br><br>Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?');

 

Hi again and thanks very much for your reply.

 

I have tried your second option and unfortunately it did not work. It did center the flash image but it also pushed the info boxes on the right to the bottom of the page on the left.

 

I have pm you my url to view so I look forward to hopefully hearing from you soon.

 

Thanks

 

Michael

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...