I want to embed my project, but I want it to be in java. However, Scratch does not provide an option to embed it as <object>, as <applet> is not supported in HTML5. Does anyone know how to embed the java player as an object?
Offline
I did, but I have a reference book, (which is a lot more useful - desktop reference books from orielly yay!) and I just needed someone who knew it off the top of their head, I currently have a very tight schedule, and would like to get it implemented ASAP.
Offline
I'd just set the doctype to HTML4, you can get a lot of useful deprecated tags
Also, I'd just use it in HTML5. It'll turn obsolete in a few years, when I doubt you'll still even care about the site (unless it's eternity inc.)
Last edited by chanmanpartyman (2012-06-12 22:58:29)
Offline
jvvg wrote:
You could try using the Flash player, or use HTML4/XHTML (XHTML is good because it has well-formed syntax and HTML5 doesn't).
HTML5 actually can have well-formed syntax; in all honesty, it actually depends on the coder as to how sloppy/clean the code is. I mean, you could have "XHTML", but with bad syntax; it just wouldn't be validated.
Now, for your question, here's the code:
<object tabindex="0" type="application/x-java-applet" height="387" width="482"> <!--Generic parameters for all Java applets. --> <param name="codebase" value="http://scratch.mit.edu/static/misc/" > <param name="archive" value="ScratchApplet.jar" > <param name="code" value="ScratchApplet" > <!--Specific parameters. --> <param name="project" value="../../static/projects/technoguyx/355353.sb" > Your browser needs Java to view projects. </object>
Just set the height and width to what you'd like
Source: http://freear.org.uk/content/embed-scratch-applet-html5
Last edited by SJRCS_011 (2012-06-13 18:21:51)
Offline
chanmanpartyman wrote:
I'd just set the doctype to HTML4, you can get a lot of useful deprecated tags
Also, I'd just use it in HTML5. It'll turn obsolete in a few years, when I doubt you'll still even care about the site (unless it's eternity inc.)
funny you say that, it is actually Eternity Inc's site. I'm trying to improve SEO, and invalid HTML markup looks bad when developing SEO.
Offline
SJRCS_011 wrote:
jvvg wrote:
You could try using the Flash player, or use HTML4/XHTML (XHTML is good because it has well-formed syntax and HTML5 doesn't).
HTML5 actually can have well-formed syntax; in all honesty, it actually depends on the coder as to how sloppy/clean the code is. I mean, you could have "XHTML", but with bad syntax; it just wouldn't be validated.
Now, for your question, here's the code:Code:
<object tabindex="0" type="application/x-java-applet" height="387" width="482"> <!--Generic parameters for all Java applets. --> <param name="codebase" value="http://scratch.mit.edu/static/misc/" > <param name="archive" value="ScratchApplet.jar" > <param name="code" value="ScratchApplet" > <!--Specific parameters. --> <param name="project" value="../../static/projects/technoguyx/355353.sb" > Your browser needs Java to view projects. </object>Just set the height and width to what you'd like
Source: http://freear.org.uk/content/embed-scratch-applet-html5
thank you so much!
Offline