The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
Lets Get Started
This is the most basic form of the code and provides the core for us to build on. Open up your HTML code for your website and type the following:
<embed src="name">
Replace "name" with the address of your media file, including the extension (i.e .swf, .wav, .wmv), which we will assume is a movie clip. When you view the webpage now you will see the movie you inserted in a smallish box. This is the default view of a video file without more coding in the embed tag. Additional code improves the functioning and presentation of the video in the webpage.
Movie Clip:Sizing
First we will look at how to set the height and width of the video. Use the code:
<embed src="name" height="280" width="450">
Now the movie will be a much more comfortable size for viewing. You can set the height and width values to whatever suits you and the layout of your page. Setting the Height and Width as above is called setting a parameter and tells the browser how to view it.
Always set values for Height and Width as nasty errors can sometimes occur when they are left blank.
Movie Clip:Behaviour
Telling the browser how you want the video to act once the page is loaded can be extremely useful. Here are some attributes that can be set, just place the code anywhere in the embed tag.
autoplay="true"
The video will play without any interaction needed by the viewer.
autoplay="false"
You need to click the play button to start the movie. This is the default as so doesnt need to be included if you want the movie to behave like this.
hidden="true"
Hides the video.
You don't need to add hidden="false" to stop the movie from being hidden.
name="my_video"
Name your video - not entirely necessary. Useful if you want to refer to your video in javascript.
pluginspace="webaddress"
If the video cannot be played by the visitor's browser a link is shown ("webaddress") to where the plugin to view the file can be downloaded.
It is a good idea to include this as it will stop visitors from being deterred from the rest of your site if they see that there is a pluginspace to help them view the video.
loop="true"
Loops the movie continuously.
playcount="2"
Set a value for the number of times you want to make the video play.
Video URL Links
Just like image files, video clips can be used as links to webpages. The code is the same with videos except the
<a href>
tag goes around the <embed>
tag instead of the <img>
tag. Like this ..
<a href="www.freeola.com">
<embed src="freeola_rocks.wmv" height="350" width="260" loop="true">
</a>
You must remember to add the
</a>
tag at the end, otherwise everything after where the tag should be on the page will act as a link.Webdesigner Tip:Images and text act as much better links than videos, the occassional video link is OK.
I hope you found this very useful.Thanks for reading!
Nitro_goat
Lets Get Started
This is the most basic form of the code and provides the core for us to build on. Open up your HTML code for your website and type the following:
<embed src="name">
Replace "name" with the address of your media file, including the extension (i.e .swf, .wav, .wmv), which we will assume is a movie clip. When you view the webpage now you will see the movie you inserted in a smallish box. This is the default view of a video file without more coding in the embed tag. Additional code improves the functioning and presentation of the video in the webpage.
Movie Clip:Sizing
First we will look at how to set the height and width of the video. Use the code:
<embed src="name" height="280" width="450">
Now the movie will be a much more comfortable size for viewing. You can set the height and width values to whatever suits you and the layout of your page. Setting the Height and Width as above is called setting a parameter and tells the browser how to view it.
Always set values for Height and Width as nasty errors can sometimes occur when they are left blank.
Movie Clip:Behaviour
Telling the browser how you want the video to act once the page is loaded can be extremely useful. Here are some attributes that can be set, just place the code anywhere in the embed tag.
autoplay="true"
The video will play without any interaction needed by the viewer.
autoplay="false"
You need to click the play button to start the movie. This is the default as so doesnt need to be included if you want the movie to behave like this.
hidden="true"
Hides the video.
You don't need to add hidden="false" to stop the movie from being hidden.
name="my_video"
Name your video - not entirely necessary. Useful if you want to refer to your video in javascript.
pluginspace="webaddress"
If the video cannot be played by the visitor's browser a link is shown ("webaddress") to where the plugin to view the file can be downloaded.
It is a good idea to include this as it will stop visitors from being deterred from the rest of your site if they see that there is a pluginspace to help them view the video.
loop="true"
Loops the movie continuously.
playcount="2"
Set a value for the number of times you want to make the video play.
Video URL Links
Just like image files, video clips can be used as links to webpages. The code is the same with videos except the
<a href>
tag goes around the <embed>
tag instead of the <img>
tag. Like this ..
<a href="www.freeola.com">
<embed src="freeola_rocks.wmv" height="350" width="260" loop="true">
</a>
You must remember to add the
</a>
tag at the end, otherwise everything after where the tag should be on the page will act as a link.Webdesigner Tip:Images and text act as much better links than videos, the occassional video link is OK.
I hope you found this very useful.Thanks for reading!
Nitro_goat