PDA

View Full Version : Embedded Video in a webpage


terpenjj
1-22-06, 11:03 PM
Hi, all.

I am new to web design and currently have a website for my basketball team. Was wondering if anyone knows how I can do the following:

When the main page pops up, how do I get a video to run first and then the main page?

Or

How can I have an intro page pop up and then when finished disappears and brings up the main page.

Are there codes I can use?

Thank you in advance for your help.

James

Mirzabah
1-22-06, 11:24 PM
Are there codes I can use?Many. The question is "should you?" Entry pages, while popular in the 90s are today regarded as gauche. This is especially true if they involve video, which tends to take a long time to download. If you offer a "skip" option, you will find that 99.9% of people will take the option, which means all that effort has gone to waste. If you don't offer a skip option, people will click away from your site faster than you can say "tech wreck", so not only is the effort on the video wasted, but you might as well not bother doing any work on the rest of the site as well because nobody is going to see it.

Much better is to offer a prominent link to the video on your main page. As to how you embed video in a web page, I am sure someone here will be able to offer some advice. Alternatively, you could consult google (http://www.google.com.au/search?q=embed+video+in+web+page).

YvetteKuhns
1-23-06, 06:33 PM
I agree with Mirzabah. Never force Flash or video on your home page! Many people will leave your site if it takes too long to load. I have high speed Internet and I almost always skip the intro pages. If I found the site through a search engine, I probably entered the site on another page since intro pages are often not highly ranked pages.

http://www.w3schools.com/flash/flash_inhtml.asp
This shows the simplest code to include Flash in a web page.

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH="500" HEIGHT="350">
<PARAM NAME="movie" VALUE="filename.swf"> <PARAM NAME="quality" VALUE="high"> <PARAM NAME="bgcolor" VALUE="#FFFFFF">
<EMBED src="filename.swf" quality="high" bgcolor="#FFFFFF" WIDTH="550" HEIGHT="400" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>

Replace filename.swf with your Flash file name. This is an example code and you will need to change the width and height. I would not use uppercase letters for tags anymore, but it IS easier to read. ;)

terpenjj
1-23-06, 10:46 PM
Thank you, Mirzabah and Yvette Kuhns for your message. I agree with you, I don't like intro when they take so long, but I was curious on how to write the code. I doubt I will be doing it that way. I have a separate intro page that gives the visitor an option to watch the video or to go to the main page.

I don't have flash, so I created the video in Ulead and saved it as a wav file. Is flash better? Reason, I ask, my stuff doesn't come out clear. It is fuzzy.

Again, thank you for your assistance on this.

James

Croc Hunter
1-25-06, 06:21 AM
Saved it as a wav file? Why would you wanna do that? wav is for audio.
In Ulead save as an mpg or wma file.

I also suggest you embed the mpg on your home page in a stopped mode. Allow your visitors to play it if they wish to or continue on to the information they're looking for. That way you won't drive repeat visitors crazy. There's a whole bunch of threads in here about embedding video with code examples.