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

Example 3
This is exactly the same as Example 2,
except that I combined the two sets of code into
a single INSERT HTML
(Click here to see how I did it)






 COMMENTS and INSTRUCTIONS

I combined the coding for Example #2 so I would only need one 'INSERT HTML':

1. Insert the block of code (show below) into the 'Insert HTML'.  

2. Note the places where I added ^GEMDIR/

3. For 'Files for this Component', you must include:
MTSInterface.js, your .MTX & .MTS files, and the two gif files supplied by Viewpoint


'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>

<!-- 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