![]() |
adding flash to the welcome.tpl
hi,
trying to figure out the best way to add a small flash movie to my front page. currently i'm using a static image embedded in the welcome.tpl file. here's the code: Code:
{* $Id: welcome.tpl,v 1.28.2.1 2006/07/12 04:51:17 svowl Exp $ *} simply replacing the "{$ImagesDir}/front_page1.jpg" with "{$ImagesDir}/front_page1.swf" aint working, so what do i need to do? i did check out this thread but i couldn't really make sense of it. any help would be greatly appreciated. |
Re: adding flash to the welcome.tpl
Quote:
You can not insert a flash as a picture. You need to use a special code to insert a flash. PHP Code:
|
Re: adding flash to the welcome.tpl
Easy method here using SWFObject...
http://www.xcartmods.co.uk/adding-flash-x-cart-mods-pg-8.html |
Re: adding flash to the welcome.tpl
thanks all, got this working!
|
Re: adding flash to the welcome.tpl
This is an old thread, but here it goes anyway.
I added this line to my "txt_welcome.tpl" file, and got the Flash to play fine., but there is a White box around the animation, and I can't figure out where it is coming from. Hope someone can help. This is the text I added. Code:
The flash plays just fine, but I need to figure out where the White background is coming from to get rid of it. maybe "skin1.css" Heres the link. http://www.tvtechcenter.com/xcart/home.php Any help would be great. Thanks Michael |
Re: adding flash to the welcome.tpl
Can't see any Flash files, did you remove it?
|
Re: adding flash to the welcome.tpl
No its still there, I did add a line to the first part. The Flash file has a Transparent Background, and that was the cause of the problem. This is what the code looks like now.
Code:
<script type="text/javascript" src="{$SkinDir}/flash/swfobject.js"></script> The 2 lines in RED are what I changes. The white background is now gone in FF3, but still there in IE7/8. I guess IE has a problem this the "wmode=transparent" Anyway I'm still looking for a fix for it.. If you didn't see the Flash playing on the top of the screen What Browser are you using? Michael |
Re: adding flash to the welcome.tpl
If you can't get it to work, you might consider using SWFObject method for embedding flash. I have used their method for transparancy, and it worked for me.
|
Re: adding flash to the welcome.tpl
Or you could save yourself the grief and redo the .fla file with your background colour.
|
Re: adding flash to the welcome.tpl
It's possible to randomise the flash banners ? so on every page refresh it would show new banners ?
|
All times are GMT -8. The time now is 09:28 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.