Post by woody60 » Wed Dec 08, 2010 1:44 am

Please start by assuming I am totally ignorant of how to do this - and you won't be far off the truth!!
Please go to http://www.deadeasymoney.com/Ireland_Stoves_2/ and have a look at the top left hand corner.
That is my attempt to get just an image in the correct position and you can see what a mess it is already! But what I actually need to do is to get a .flv file there so it fills the space and plays when the site is opened.
The relevant bit of the tpl file I assume is:
<div id="container">
<div class="wid">
<div class='colleft fl' style="padding-top:5px">
<div>
<img src="catalog/view/theme/default/image/##redl.jpg"/><img src="catalog/view/theme/default/image/testmovie2.jpg" alt='ireland stove'/>

</div>

Can anybody explain to me (in words of one syllable :-) what I need to put in this file so that the flash file works?

I will be in yuor debt if you can help me

Newbie

Posts

Joined
Wed Dec 08, 2010 1:17 am

Post by SapporoGuy » Wed Dec 08, 2010 3:50 am

Wouldn't you just put it here ... ##redl.jpg

Problem is even if you did I wouldn't be able to see it ... flash is turned off ;D

How about an animated gif?

930sc ... because it is fun!


User avatar
Active Member

Posts

Joined
Mon Nov 01, 2010 7:29 pm

Post by rezter » Wed Dec 08, 2010 10:59 am

First of all, you seem to have got the location right, so that's a good start. Next, you should realize that you can not implement flash video files ".flv" in to HTML directly. You need a ".swf" which acts as the 'video player' and it is that file that you embed in to the HTML.

So there's two steps from here:
1. Create, find or aquire a 'video player'. Whether that be creating your own in Adobe Flash or having somebody make you one or even using something like http://www.flvplayer.com/
2. Embed the '.swf' file in to your website. You've got the right location, just replace this code:

Code: Select all

<img src="catalog/view/theme/default/image/##redl.jpg"/><img src="catalog/view/theme/default/image/testmovie2.jpg" alt='ireland stove'/>
With your new flash embed code. If you use a website like http://www.flvplayer.com/ it will generate a code for you. However if you have your own player I would suggest using http://code.google.com/p/swfobject/

It really depends how experienced you are with HTML/CSS/JavaScript and I'm making no assumptions but the easiest way would be to use something like http://www.flvplayer.com/

Newbie

Posts

Joined
Tue Dec 07, 2010 10:09 am

Post by woody60 » Thu Dec 09, 2010 8:02 pm

Thanks ever so much for suggestions, but I ran in to problems getting the paths right. So in the end I got someone to do it for me, using java and it came out like this:

<div id='flcontent'></div>
<script type="text/javascript">
// <![CDATA[
/*
var so = new SWFObject("./image/data/fire.swf", "fire", "320", "240", "9", "#FF6600");
//so.addVariable("flashVarText", "this is passed in via FlashVars for example only"); // this line is optional, but this example uses the variable and displays this text inside the flash movie
so.write("flcontent");*/

// ]]>

$(document).ready(
function() {
$('#flcontent').flash({swf:'./image/data/fire.swf' ,height:240 ,width:320});
}
);
</script>

But again - thanks for the good suggestions.

Newbie

Posts

Joined
Wed Dec 08, 2010 1:17 am
Who is online

Users browsing this forum: No registered users and 48 guests