Demo 34: Viewpoint 3-D File     |     home
Example 1   |   Example 2   |   Example 3

Example 2
This version uses Javacripts





 COMMENTS and INSTRUCTIONS

Two 'Insert HTML's (BYOWGs) are required

1. Insert the first block of code (show below) into the 1st 'Insert HTML'.  
For 'Files for this Component', include the MTSInterface.js file

2. Insert the second block of code into the 2nd 'Insert HTML'.
Note the places where I added ^GEMDIR/

For 'Files for this Component', include your .MTX & MTS files, and the two gif files supplied by Viewpoint

1st 'INSERT HTML'  code

<head>
<script language="javascript" src="^GEMDIR/MTS3Interface.js"></script>

<script language="javascript">
<!--

var vmp;         //This global variable is for the VET content
//-->
</script>

<!-- javascript from earlier versions -->
<script language="JavaScript">

<!--

function triggeranimation(name)    {vmp.TriggerAnim(name);    }
function stopanimation     (name)    {vmp.StopAnim(name);    }
function startanimation (name)    {vmp.StartAnim(name);    }

//-->
</script>
</head>

2nd 'INSERT HTML'  code


<!-- FIRST OBJECT/EMBED -->
<script language="javascript">
vmp = new MTSPlugin("^GEMDIR/Bracket3.MTX", 600, 400, "", "popUp");
</script>

<form name="generic">

</form>
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tr>
<td valign="top" align="right">
<img src="^GEMDIR/not.gif" width="650" height="1" border="0"><br>
<a href="http://www.viewpoint.com" target="_blank">
<img src="^GEMDIR/vp_exper_tr_90x30.gif" width="90" height="30" border="0"></a><br>
</td>
</tr>
</table>


First INSERT HTML                                           2nd INSERT HTML