Hi, I need ask how to embed the video to the website before entry the Home or Main Menu page?

Recommended Answers

All 10 Replies

Are you wish to use iframe to do it? If you do,you can use

<iframe width="100%" height="300px" src="http://www.youtube.com"/>

If i use the video not from the website..how to write that..?

That's a lot more easier. Just put them in same folder and have the src link redirect to your video link. Example:

<iframe width="100%" height="300px" src="example_video.mp4"/>

Moreover, if you want some effect, try search and implement the lightbox effect. My recommendation is pirobox.

If I just wan normal ( no need the iframe) just put height and width in front.?
need use Object and embed tag???

Sorry got one more question....i just want to upload a video player. If i wan to watch that video then i will click that. If not, the video won't run....?

If you mean direct embed video, you should probably refer this page. It enclosed with some API which you should go through such as autostart etc http://www.tizag.com/htmlT/htmlvideocodes.php
but this require some plugin to play the video. Or a simple code such as

<video width="320" height="240" controls="controls">
  <source src="example_video.mp4" type="video/mp4" />
</video>

will do it but it cannot be disable sadly.

ooo....i try first....thanks ya...

if i using <object> tag...how to do the coding..?because i saw some code is start from the object tag...

No offence, but you should probably do some research first instead of posting your article here. This look like someone skip their work and ask around for other to do their work. For your information, the correct way of asking question is show us what you done and plenty of us are happy to help you debugging. Ok, back to main topic, please refer here: http://www.w3schools.com/html/html_object.asp

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.