Embedding FBX files on a web page

 
 
 

You can embed the FBX for QuickTime viewer on a web page so that visitors to the web page can use it to view an FBX file. You can do this by adding a JavaScript file that points to the FBX file to the website root directory.

To do this, you must add the following three things to the index of the page:

To modify a webpage so that it can show FBX files with the FBX for QuickTime viewer:

  1. Download the AC_QuickTime.js JavaScript code from . There is a link to download the JavaScript file under the heading External JavaScript Solution Two.
  2. You will use this script on the web page to launch the FBX for QuickTime viewer.

  3. Using a web page editor, access the index of the web page where you want to embed the FBX file.
  4. Write the following HTML code. This code points to the JavaScript file that you downloaded:
    <html>
    <head>
    <title>Embedded FBX QuickTime movie in a web page</title>
    <script src="AC_QuickTime.js" language="JavaScript" type="text/javascript"></script>
    </head>
    <body bgcolor="#6699FF">
    <h1>Embedded FBX file in a web page</h1>
    <div/>
    <script language="JavaScript" type="text/javascript">
    QT_WriteOBJECT_XHTML('Tester.FBX', '800', '600', '',
        'autoplay', 'true',
        'emb#bgcolor', 'black',
        'align', 'middle'); 
    </script>
    <hr/>An fbx file should be playing now above, using a QuickTime player embedded.
    </body>
    </html>
    
  5. Add the JavaScript to your web page code and upload the FBX file you wish to view to the web page index.