Eng:Embedding Projects (1.4)

To embed a project is to add a Scratch project to an HTML, XHTML or other similarly marked-up web page by inserting a particular code, called the embed code in the web page's source HTML/XHTML.

How to Embed Projects
There are four different ways of embedding a project onto a web page. Under the Project Notes and tags of a project, there is a section entitled "Link to this Project." If one clicks on "Embed", they are given the option copy and paste coding for web pages.

As an Image
This method inserts the image of a project, and links to the project, but does not actually let one play the project. It can be done by inserting the code that says "as an image."

As a Java Applet
This is the more useful method, and works most of the time. It allows the project to be played in the page, rather than just linking to it. It can be done by inserting the code that says "as an applet."

The code at the end which is

can be removed, so that the link at the bottom does not appear. Alternatively, you can change the text and/or the link.

As a Flash Player
Embedding the Flash Player can be done by performing the following:

Copy and paste this into the code editor:   

Replace  with the username of the project creator,   with the id of the project, found in the URL after the username, and   with the version of the project wishing to be played.

Another way to do this is by installing a userscript created by a Community Moderator. This will add an extra option to embed as Flash.