This site requires JavaScript, please enable it in your browser!
Greenfoot back
davmac
davmac wrote ...

2018/4/23

Embedding scenarios in other web pages

davmac davmac

2018/4/23

#
If you have a blog or other website, you may have wanted to be able to embed a Greenfoot scenario in it. Up until now, that has only been possible with the legacy applet version of scenarios. But now, we have added the ability to embed HTML5 scenarios in other web sites! You'll notice a new "embed" link beneath each scenario. Clicking this will open a dialog with a short snipper of HTML code that you can copy into your own web page. An embedded version of the scenario will not have the controls (run / pause / reset / speed slider) visible, and will auto-run when it loads. The scenario itself is still hosted on this site, greenfoot.org, and is displayed in the other page as an IFrame. If there any questions or comments, please feel free to post here!
You need to login to post a reply.