This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-06-12 15:03:37

kstacy
Scratcher
Registered: 2008-06-12
Posts: 2

Java applet

This is more of a question than a suggestion but I'm wondering if there is a way to embed the applets on one's own site rather than uploading to MIT's site. It's a school logistics thing ...

TIA.

Offline

 

#2 2008-06-12 16:03:33

dbal
Scratcher
Registered: 2007-07-19
Posts: 100+

Re: Java applet

kstacy wrote:

This is more of a question than a suggestion but I'm wondering if there is a way to embed the applets on one's own site rather than uploading to MIT's site. It's a school logistics thing ...

TIA.

The answer is yes.  I just saw a post the other day that explained how to do it, but I don't recall where I saw it.  However, there is an example at http://www.freewebs.com/bobby500/  You can open the source code for that page in your browser and see how that person did it.

Here is some html that I recently used to display one of my favorite Scratch projects in a table:

<p>
<b>Figure 1. Rushes with sun by pandalecteur.</b><table border="0" cols="1" bgcolor="#EFE9B8" id="table1" >
  <tbody>
    <tr>
      <td>
<applet id='ProjectApplet' style='display:block' code='ScratchApplet' codebase='http://scratch.mit.edu/static/misc' archive='ScratchApplet.jar' height='387' width='482'><param name='project' value='../../static/projects/pandalecteur/122328.sb'></applet>
      </td>

    </tr>
  </tbody>
</table>
</p>


Dick Baldwin - Don't get stuck scratching. When you master Scratch, move on up to more serious programming languages. Free online programming tutorials:
Scratch - Alice - Java - C# - C++ - JavaScript - XML - Python - DSP

Offline

 

#3 2008-06-13 08:43:26

andresmh
Scratch Team at MIT
Registered: 2007-03-05
Posts: 1000+

Re: Java applet

In each project page, there is a section titled "Link to this Project". Underneath is a link that says embed. Click there and you'll get the HTML code to embed that particular project somewhere else.


Andres Monroy-Hernandez | Scratch Team at the MIT Media Lab
on identi.ca and  twitter

Offline

 

Board footer