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

Need help to add animated gif to header.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-04-2007, 06:42 AM
  columbo's Avatar 
columbo columbo is offline
 

Newbie
  
Join Date: May 2007
Location: Ontario Canada
Posts: 4
 

Default Need help to add animated gif to header.

Hi,

I just purchased xCart Gold V4.1 with the Neon Lights Houshold template.

The header displays my logo, (Company_name.gif) and a picture which I believe is a background, (header_bg.jpg).

I would like to add a very small animated .gif, (flag), on the far right side of the header. Can anyone tell me how I can accomplish this. Which template needs to be edited and will it be difficult to align it where I want it on the right side? I assume it would be placed in a table?

Any help greatly appreciated.

Thanks.
__________________
xCart Version 4.1
Reply With Quote
  #2  
Old 05-04-2007, 07:12 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Need help to add animated gif to header.

This thread should help you:

http://forum.x-cart.com/showthread.php?t=21529
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 05-04-2007, 07:26 AM
  columbo's Avatar 
columbo columbo is offline
 

Newbie
  
Join Date: May 2007
Location: Ontario Canada
Posts: 4
 

Default Re: Need help to add animated gif to header.

Thanks, I'll look at it.
__________________
xCart Version 4.1
Reply With Quote
  #4  
Old 05-04-2007, 07:23 PM
  columbo's Avatar 
columbo columbo is offline
 

Newbie
  
Join Date: May 2007
Location: Ontario Canada
Posts: 4
 

Default Re: Need help to add animated gif to header.

I looked at the guide you mentioned. The template seems to be the "head.tpl". Since I am using the Neon Household Template I have to change the "head.tpl" in the templates/custom folder. I tried changing it but it didn't work.

What I wanted is a small animated flag on a circle with a black background just before the company logo. Since the animated gif is simply a flag with a transparent background I tried placing the circle with the black background as a background image in the table cell and then inserting the animated gif into the cell. I experimented with this in Dreamweaver and it worked fine. For some reason when I try it in the head.tpl nothing is displayed at all.

The original tpl code was:

<tr>
<td width="100%" style="padding-left: 42px;">
<a href="{$http_location}"><img src="{$ImagesDir}/custom/Company_name.gif" width="305" height="79" border="0" alt="{$config.Company.company_name}" /></a>
</td>
</tr>

The change that I made was to simply add the following, right after the <tr> in the above code :

<td width=92 background="{$ImagesDir}/custom/flag_bg.gif"><img src={"$ImagesDir}/custom/Flag1.gif" width="68 height="50">

I'm not much of a template coder but that was my attempt.
__________________
xCart Version 4.1
Reply With Quote
  #5  
Old 05-06-2007, 05:49 PM
  columbo's Avatar 
columbo columbo is offline
 

Newbie
  
Join Date: May 2007
Location: Ontario Canada
Posts: 4
 

Default Re: Need help to add animated gif to header.

Can anyone offer any suggestions?
__________________
xCart Version 4.1
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 07:50 AM.

   

 
X-Cart forums © 2001-2020