HOW TO
Instructions provided explain how to setup sample hyperlinks for a Java Viewer.
Code:
<SCRIPT type="text/javascript" language="JavaScript">
// Designer will set the next variable - theTitle
var theTitle = "ArcIMS Viewer";
if (theTitle.indexOf("###TITLE##")!=-1) theTitle = titleList[3];
document.writeln("<TITLE>" + theTitle + "</TITLE>");
var hyperLinkLayers = new Array();
var hyperLinkFields = new Array();
hyperLinkLayers[0] = "artgalleries";
hyperLinkFields[0] = "WEBSITE";
</script>
<script language="javascript" src="default.js">
</script>
Code:
if (parent.useShowSelect) {
document.write('<td align="center" valign="middle">');
// choose between the following two calls
// the next line will display attributes of selected features in HTML table. .
. slower but can be customized easily
document.write('<img src="images/attributes_1.gif" width=16 height=16 hspace=0
vspace=1 border=0 alt="Attributes" onmousedown="showSelect(\'\');"
onmouseover="window.status=\'Attributes\'">');
// the next line will display attributes of selected features in Java table. .
. faster but cannot be customized
// document.write('<img src="images/attributes_1.gif" width=16 height=16
hspace=0 vspace=1 border=0 alt="Attributes" onmousedown="displayAttributes(\'\');"
onmouseover="window.status=\'Attributes\'">');
//
isSecond = !isSecond;
document.writeln('</td>');
if (isSecond) document.write('</tr><tr>');
}
Article ID:000007874
Get help from ArcGIS experts
Download the Esri Support App