Embedding 3DML Worlds in Web Pages

To embed a 3DML document in a Web page, use the <embed> HTML tag. You must provide the 3DML MIME type in the <embed> tag, along with the filename of the 3DML document and the location of the plug-in page for Rover. The following is an example of how the <embed> tag is used to reference a 3DML document named MySpot.3dml:

<embed type="model/vnd.flatland.3dml" src="MySpot.3dml"
  pluginspage="http://www.flatland.com/download_direct.html"
  width="100%" height="100%">

The pluginspage attribute is useful in this example because it automatically takes the user to the Rover download page if the browser detects that he doesn't have the plug-in installed.

Listing 35.3 contains the complete code for the Maze.html Web page, ...

Get XML Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.