|
Posted by KenowaX
at Nov 27, 2014, 3:04:32 PM
|
Re: Integrating Sweet Home 3D Viewer in a webpage
In case you need the codes, here they are :
<!-- SweetHome3DViewer.html 31 Mar 2009 Sweet Home 3D, Copyright (c) 2009-2013 Emmanuel PUYBARET / eTeks <[email protected]> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --> <script language="JavaScript" src="http://java.com/js/deployJava.js"> </script> <script> var javaMinimumVersion = "1.6.0_10"; // The first version with Java Plugin 2 var jars = "SweetHome3DViewer.jar,batik-svgpathparser-1.7.jar"; // Append Java 3D Jars depending on the platform if (navigator.platform.match("Win.*")) { if (navigator.platform.match(".*64")) { jars += ",java3d_windows_x64.jar"; } else { jars += ",java3d_windows_i386.jar"; } } else if (navigator.platform.match("Mac.*")) { javaMinimumVersion = "1.5"; jars += ",java3d_macosx.jar"; } else if (navigator.platform.match("Linux.*")) { javaMinimumVersion = "1.6"; // OpenJDK doesn't give its subversion if (navigator.platform.match(".*64")) { jars += ",java3d_linux_x64.jar"; } else { jars += ",java3d_linux_i386.jar"; } } else { jars += ",java3d.jar"; }
var attributes = {codebase:"http://shibu-q.weebly.com/files/theme/", code:"SweetHome3DViewer", archive:jars, width:"100%", height:"100%", name:"SweetHome3DViewer"}; var parameters = {java_arguments:"-Xmx640m", navigationPanel:"true", homeURL:"http://shibu-q.weebly.com/files/theme/default.sh3d"}; deployJava.setInstallerType("kernel"); deployJava.setAdditionalPackages("javax.swing,javax.imageio"); deployJava.runApplet(attributes, parameters, javaMinimumVersion); </script>
|