jsme Applet

mail@pastecode.io avatar
unknown
html
3 years ago
797 B
3
Indexable
Never
<script type="text/javascript" language="javascript" src="https://chemapps.stolaf.edu/jmol/jsmol/jsme/jsme/jsme.nocache.js"></script>

<script type="text/javascript">

	//this function will be called after the JavaScriptApplet code has been loaded.
	function jsmeOnLoad() {

		jsmeApplet = new JSApplet.JSME("appletContainer", "380px", "340px", {
			//optional parameters
			"options" : "query,hydrogens"
		});

		//jsmeApplet has the same API as the original Java applet
		//One can mimic the JME Java applet access to simplify the adaptation of HTML and JavaScript code:
		document.JME = jsmeApplet;

	}
	
</script>

<body>

	<table align="center">
		<tr>
			<td id="appletContainer"></td>
		</tr>
	</table>

	<form action="/project/17">
		<input type="submit" value="Submit">
	</form>
	
</body>