![]() |
Trouble with flash files in head.tpl
Hi,
I'm waving the white flag, I surrender, been at this problem on and off for a couple of weeks and I still can't solve it. I have a client who requires a flash file to run in the header of his site. It's the simplest two image fade in fade out you can do in flash. When a user clicks around the site, the whole page refreshes, the header, menus etc all refresh. If I remover the flash file from the head.tpl, the "refreshing" problem disappears also. I've used a couple of third party programs initially to create the file and thought it may have been the way the code was generated, so I became a quick learner of Flash CS3 and created my own file. The same problem occurred so it wasn't dodgy code. If I put the flash file in the welcome.tpl there is also no page refreshing issue. Just when it's in the head.tpl. Has anyone struck the same issue and if so what's the damn fix :D? Thanks |
Re: Trouble with flash files in head.tpl
I don't use flash, but here is x-cart's solution...
Code:
{*** Remove this part of code if you want to replace a flash movie with an image *** It goes in head.tpl in place of where the logo is normally displayed. |
Re: Trouble with flash files in head.tpl
Thanks JW, I'll take a look at that when I'm back in the office later today.
|
Re: Trouble with flash files in head.tpl
There are advantages to using swfobject for embedding flash, you might be interested in taking a look.
|
Re: Trouble with flash files in head.tpl
I was trying to do the same thing and got it to work ok but I only need to center the flash in the space, but what I did was took the code posted above(reguards to above ) and inserted it into /customer/main/welcome.tpl you might be able to copy and paste the entire code as provided below into this folder but 1st make a backup copy
template will look like this: Code:
{* $Id: welcome.tpl,v 1.28 2006/04/12 09:54:19 svowl Exp $ *} next what you need to do is create a flash (.swf) file. to make it simple name it " flash_logo" and place into /xcart/skin1/images/custom so far it works on my testing site witch is a full site with a few mods installed and there are no errors on page. once I figure out how to center it. ill post it on site. IM sure it is just adding a <cell padding > type code |
All times are GMT -8. The time now is 04:08 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.