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)
-   -   Need help to add animated gif to header. (https://forum.x-cart.com/showthread.php?t=30935)

columbo 05-04-2007 06:42 AM

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.

balinor 05-04-2007 07:12 AM

Re: Need help to add animated gif to header.
 
This thread should help you:

http://forum.x-cart.com/showthread.php?t=21529

columbo 05-04-2007 07:26 AM

Re: Need help to add animated gif to header.
 
Thanks, I'll look at it.

columbo 05-04-2007 07:23 PM

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.

columbo 05-06-2007 05:49 PM

Re: Need help to add animated gif to header.
 
Can anyone offer any suggestions?


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

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