I made a site, https://sites.google.com/site/16skittlesproductions/
and want to add my projects to it (exclusives, hosted right on site) I downloaded the files to the filemap, and was wondering how to change the code. Thank you!
Last edited by 16Skittles (2010-10-21 15:36:33)
Offline
in a menu there should be an option that will let you add the html code, you can copy this from and embed option on your projects page. I know this is not much help but i dont use google site also, hope that helps you a little...
This was only to embed, not exclusive.
Use scratch applet and upload it to your files, go here: http://scratch.mit.edu/forums/viewtopic.php?id=191
for more
Last edited by dav09 (2010-10-21 17:33:04)
Offline
dav09 wrote:
in a menu there should be an option that will let you add the html code, you can copy this from and embed option on your projects page. I know this is not much help but i dont use google site also, hope that helps you a little...
This was only to embed, not exclusive.
Use scratch applet and upload it to your files, go here: http://scratch.mit.edu/forums/viewtopic.php?id=191
for more
I saw that, I wanted to know how to change that code.
Offline
if you know html your will be able to but it would be very very hard.
Offline
okay, I think I'm on to something.
<html> <body> <applet id="ProjectApplet" style="display:block" code="ScratchApplet" codebase="./" archive="http://scratch.mit.edu/static/misc/ScratchApplet.jar" height="387" width="482"> <param name="project" value="http://scratch.mit.edu/projects/16skittles/1235943/download"> </applet> </body> </html>
And it pulls up the scratch window we all know and love, but it doesn't load.
Also, in sites, it says it doesn't accept the iframe tag... please help bypass
Offline
I created a simple Google Gadgets wrapper that lets you embed the Scratch applet. First, go to the project you want to embed and get the embed code under 'Link to this project' (choose "as an applet"). Find the <param name="..." value="..."/> tag and copy the URL in 'value' (without the quotes). It should look like this:
../../static/projects/fullmoon/1075510.sb
This is your partial project URL.
Now on your Google Site page, select Insert > More Gadgets... and choose "Add Gadget By URL". When it asks for the URL, give it this:
http://gist.github.com/raw/641466/59118e2fb7d2af40fd6e849bb84b3f32cf29af17/Scratchlet
Click OK. You should see a "project URL" field. Enter the partial project URL from earlier. Set the width and height to 480x360 (try 370 maybe) and click OK!
Offline
thank you! you'll see credit under the app on the site!
but making it link to a file on my site instead of scratch's?
Offline
16Skittles wrote:
thank you! you'll see credit under the app on the site!
but making it link to a file on my site instead of scratch's?
I think you can just put in any URL of a .sb file, but I'm not sure...
Offline
including the whole url? the scratch one used ../../ stuff in the url.
Offline
okay.
Edit: It didn't work.
here's the URL for the download.
https://sites.google.com/site/16skittlesproductions/filespace/Rescue_At_Sea_V_B.1.sb?attredirects=0&d=1
Last edited by 16Skittles (2010-10-23 10:29:47)
Offline
in the filespace section of the site. I just added it a little while ago.
Offline
Try using this for your gadget url:
http://gist.github.com/raw/641466/59118e2fb7d2af40fd6e849bb84b3f32cf29af17/Scratchlet
There's a new parameter, codebase, that corresponds to the codebase attribute of the <applet> tag in the HTML. This must point to a directory where ScratchApplet.jar is. The URL link should then point to a .sb file relative to the codebase URL. I can't really verify whether this works, but do try it out!
Offline