Creating embeddable content.

taekwondokid42

New Member
Messages
268
Reaction score
0
Points
0
I need to know how to create a file on my site that can be embedded on another site.

I know nothing about this, so an online tutorial would be best.
 

exemption

New Member
Messages
66
Reaction score
0
Points
0
A good place to learn would be w3schools.com

BUT

You could use a media player plugin..which you just embed the player..and upload the song to the embedded player
 

taekwondokid42

New Member
Messages
268
Reaction score
0
Points
0
That's not much help, sorry.

I need a specific tutorial. Just w3schools has about a bajillion, and I can't find the one that will specifically do that.
 

epoclaen

Member
Messages
79
Reaction score
0
Points
6
Any file you have can already be embedded into another website without modifying the original file.

The caveat is that the method of embedding the file may be different depending on the file type (video, sound clip, image, java application, etc.) so unless you have something else in mind I'll assume that you mean a video file.

When given the opportunity to embed a video into another website, the original website usually simply offers the viewer an iframe tag and tells them to copy and paste the given ifram code into their website. So if a "myVideo.avi" file that is 300 by 400 pixels in size was located in the root directory on http://yourdomain.x10hosting.com then it might tell users to embed the code:
Code:
<iframe height="300" width="400" src="http://yourdomain.x10hosting.com/myVideo.avi" frameborder="0" scrolling="no"></iframe>
Similarly simplistic code snippets can be used in an <EMBED> (http://www.htmlcodetutorial.com/embeddedobjects/_EMBED.html) or an <OBJECT> (http://www.w3schools.com/TAGS/tag_object.asp) tag. There are other tags you can use but again which tag to use (and how to use it) depends on the file type. Check out http://w3schools.com/media/media_browsersounds.asp for many of them. The next page after that one talks more about videos and the entire section is worth a read.
 

freecrm

New Member
Messages
629
Reaction score
0
Points
0
Alternatively, you could use the php include function which seamlessly inserts other pages into the one you want them to appear in. Without knowing what type of "file" you are trying to embed, I can't advise more than the above.
 
Top