X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Add Flash to Home Page (https://forum.x-cart.com/showthread.php?t=62123)

demetria 12-24-2011 07:23 PM

Add Flash to Home Page
 
I'm trying to replace the welcome.jpg image with a flash banner. It went into welcom.tpl and add the following code:

<div class="welcome-top">
{if $categories_menu_list or $fancy_use_cache}
{include file="customer/categories.tpl"}
{else}
<img src="{$ImagesDir}/spacer.gif" alt="" class="empty-height-extender" />
{/if}
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="640" height="480" id="tech" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="welcome.swf" />
<param name="quality" value="high" />
<embed src="welcome.swf" quality="high" width="640" height="480" name="tech" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</div>

The flash banner shows up, however it shows below the categories box instead of next too it like the welcome.jpg image did. I tried changing the align property, but that didn't work. How do I fix this?

Thanks for any help.

ARW VISIONS 12-24-2011 07:45 PM

Re: Add Flash to Home Page
 
link?

CottonAge.com 12-24-2011 09:10 PM

Re: Add Flash to Home Page
 
try this...
Code:

<div class="welcome-top">
<table>
    <tr>
          <td>{if $categories_menu_list or $fancy_use_cache}
    {include file="customer/categories.tpl"}
  {else}
    <img src="{$ImagesDir}/spacer.gif" alt="" class="empty-height-extender" />
  {/if}
          </td>
          <td><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"  width="640" height="480" id="tech" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="movie" value="welcome.swf" />
        <param name="quality" value="high" />
        <embed src="welcome.swf" quality="high" width="640"  height="480" name="tech" align="middle" allowScriptAccess="sameDomain"  type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer" />
          </td>
    </tr>
</table>

</div>

Just added a table

demetria 12-25-2011 06:19 AM

Re: Add Flash to Home Page
 
Thanks, adding the table worked.

CottonAge.com 12-25-2011 08:01 PM

Re: Add Flash to Home Page
 
glad to help :)


All times are GMT -8. The time now is 12:02 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.