Publish Tour with a Template Html


In Tourweaver 4.00, you can choose to publish virtual tour with a template html. There are two macros provided: <!-%% Embeded Virtual Tour %%-> and <!-%% Popup Virtual Tour %%->. For example, you want to embed a tour into a certain webpage, you can build a template with <!-%% Embeded Virtual Tour %%->. Or if you want to use a webpage where there is an image icon to pop up a virtual tour, you can use <!-%% Popup Virtual Tour %%->.

1. Embed the villa tour into the following page

2. You can make a template like this:

<html>
<body>
<table width="96%" height="388" border="1">
<tr>
<td height="79" colspan="2"><img src="virtual-tour-software-top.gif" width="980" height="88"></td>
</tr>
<tr>
<td width="16%"><table width="100%" height="253" border="1">
<tr>
<td bordercolor="#CCCCCC">Villa </td>
</tr>
<tr>
<td>Nanjing Road</td>
</tr>
<tr>
<td>Shanghai Museum</td>
</tr>
</table></td>
<td width="84%"> <!-%% Embeded Virtual Tour %%-></td>
</tr>
</table>
</body>
</html>

3. Then save this as template.html.

4. Go to Publish settings and choose Template as below:

5. After you publish the tour, you can see the tour as below:

If you want to pop up the tour from a template html, please refer to the following code:

<html>
<body>
<table width="96%" height="388" border="1">
<tr>
<td height="79" colspan="2"><img src="virtual-tour-software-top.gif" width="980" height="88"></td>
</tr>
<tr>
<td width="16%"></td>
<td width="84%">
<table width="100%" height="253" border="1">
<tr>
<td bordercolor="#CCCCCC"><!-%% Popup Virtual Tour %%-></td>
<td>Virtual Tour</td>
</tr>
<tr>
<td>Virtual Tour</td>
<td>Virtual Tour</td>
</tr>
<tr>
<td>Virtual Tour</td>
<td>Virtual Tour</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

The result is as below:

You can click the icon to view the virtual tour in popup window.