Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Add Flash to Home Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-24-2011, 07:23 PM
 
demetria demetria is offline
 

Newbie
  
Join Date: Sep 2010
Posts: 9
 

Default 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.
__________________
X-Cart Pro 4.4.3
X-SpecialOffers
X-Magnifer
Reply With Quote
  #2  
Old 12-24-2011, 07:45 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Add Flash to Home Page

link?
__________________
xcart 5.1.2
Reply With Quote
  #3  
Old 12-24-2011, 09:10 PM
  CottonAge.com's Avatar 
CottonAge.com CottonAge.com is offline
 

eXpert
  
Join Date: Jan 2008
Location: Orange County, California
Posts: 244
 

Default 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
__________________
CottonAge.com - v4.4.4 - Gold
Mirko.com - v4.1.12 - Gold

We sell Bathrobes, Slippers, Towels & more at wholesale prices...
Reply With Quote
  #4  
Old 12-25-2011, 06:19 AM
 
demetria demetria is offline
 

Newbie
  
Join Date: Sep 2010
Posts: 9
 

Default Re: Add Flash to Home Page

Thanks, adding the table worked.
__________________
X-Cart Pro 4.4.3
X-SpecialOffers
X-Magnifer
Reply With Quote
  #5  
Old 12-25-2011, 08:01 PM
  CottonAge.com's Avatar 
CottonAge.com CottonAge.com is offline
 

eXpert
  
Join Date: Jan 2008
Location: Orange County, California
Posts: 244
 

Default Re: Add Flash to Home Page

glad to help
__________________
CottonAge.com - v4.4.4 - Gold
Mirko.com - v4.1.12 - Gold

We sell Bathrobes, Slippers, Towels & more at wholesale prices...
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:01 AM.

   

 
X-Cart forums © 2001-2020