I would like to embed my scratch game on my own website. Unfortunately, the websites host (wix) has no file hosting capabilities. Would it be possible to host the game on dropbox and then have it embedded in the website? If so, how?
Thanks for reading
Offline
Yeah, it should be possible. Just make sure to host the file in the public folder, and use the "Copy Public Link" thing, not their new sharing link system. Once the file is hosted, all you have to do is, using the blank html widget, use the embed code for any scratch project (below), and paste in the direct link to your project on Dropbox.
<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/bash90/3298553.sb'></applet> <a href='[Paste link Here]'>Learn more about this project</a>
Offline
This would seem to work better, because it refrences the actual project in the applet part rather in just the link part. Still, try both.
<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='[dropbox link here]'></applet>
Offline
thanks for your help, but the loading bar stays unloaded for ever. I tried the normal dropbox link (https://www.dropbox.com/s/xl5wie4qsyj9vie/test.sb) and the direct download link (https://dl.dropboxusercontent.com/s/xl5wie4qsyj9vie/test.sb?token_hash=AAHKimoACB9pGVG2fm75coWlVvw9MClEE3u6IOduwpe-pA&dl=1) but neither worked
Offline
like this <iframe src=https://dl.dropbox.com/whateveryourlinkis width="youchoose" height="youchoose"> PS (If it doesn't have custom html use weebly or webs instead
Offline
MrFlash67 wrote:
This would seem to work better, because it refrences the actual project in the applet part rather in just the link part. Still, try both.
Code:
<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='[dropbox link here]'></applet>
Oh, yeah, that's what I meant to do... Use this one.
Offline
lightning3105 wrote:
thanks for your help, but the loading bar stays unloaded for ever. I tried the normal dropbox link (https://www.dropbox.com/s/xl5wie4qsyj9vie/test.sb) and the direct download link (https://dl.dropboxusercontent.com/s/xl5wie4qsyj9vie/test.sb?token_hash=AAHKimoACB9pGVG2fm75coWlVvw9MClEE3u6IOduwpe-pA&dl=1) but neither worked
![]()
OK, I think I figured out what you're doing wrong...
First, check and make sure that the file is in the Public folder on your Dropbox.
Then all you have to do is select the file on dropbox.com, and click the "Copy Public Link" Button at the top, and paste that link into the code.
The link should be in a format similar to this:
https://dl.dropboxusercontent.com/u/12506914/test.sb
Hopefully that works for you!
Offline