📄 plx.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="Title" content=""/> <meta name="Subject" content=""/> <meta name="Category" content=""/> <meta name="Keywords" content=""/> <meta name="Description" content=""/> <meta name="Author" content="Administrators"/> <meta name="Manager" content=""/> <meta name="Company" content="JUJUMAO"/>
<title>PLX</title>
<script src="PLX_files/frameset.js" type="text/jscript" language="jscript"></script>
<script type="text/jscript" language="jscript" >
function FileEntry (pageIndex, pageID, pageName, priImage, secImage)
{
this.PageIndex = pageIndex;
this.PageID = pageID;
this.PageName = pageName;
this.PriImage = priImage;
this.SecImage = secImage;
}
var viewMgr = null;
var g_FileList = new Array(
new FileEntry (1, 0, "Prog", "vml_1.htm", "gif_1.htm"), new FileEntry (2, 4, "S", "vml_2.htm", "gif_2.htm"), new FileEntry (3, 5, "Procedure", "vml_3.htm", "gif_3.htm")
);
var g_CurPageIndex = 0;
var g_ZoomLoaded = false;
var g_WidgetsLoaded = false;
var g_FileProtocol = "file://";
var g_HLMenuEntry = "menuEntry";
var g_HLMenuEntryDiv = "menuEntryDiv";
var g_LoadingWidgets = false;
function CViewMgr(convertedImgID, highlightDivID)
{
this.onResize = null;
this.ApplyZoom = null;
this.ChangingView = false;
this.put_Location = ViewMgrDefaultFind;
this.Zoom = ViewMgrDefaultResize;
this.PostZoomProcessing = null;
this.setView = null;
this.PostSetViewProcessing = null;
this.viewChanged = null;
this.SupportsDetails = false;
this.SupportsSearch = false;
this.visBBoxLeft = 0.0;
this.visBBoxRight = 0.0;
this.visBBoxBottom = 0.0;
this.visBBoxTop = 0.0;
this.highlightDiv = null;
this.stepWidth = 10;
this.id = convertedImgID;
this.zoomFactor = -1;
this.zoomLast = -1;
this.origWH = 1;
this.origWidth = 100;
this.aspectRatio = 1;
this.docDrawing = null;
var docDrawing = frmDrawing.document;
if(docDrawing)
{
this.docDrawing = docDrawing;
var docEl = docDrawing.all(this.id);
if (docEl)
{
this.s = docEl.style;
this.origWidth = this.s.pixelWidth;
this.origWH = this.s.pixelWidth / this.s.pixelHeight;
}
this.highlightDiv = docDrawing.all(highlightDivID);
}
this.loadPage = DefPageLoad;
this.getPNZ = null;
}
function DefPageLoad (pageIndex)
{
if (pageIndex >= 0)
{
var curPath = frmDrawing.location.href;
var fileDelim = curPath.lastIndexOf ('/');
var newPath = curPath.substring (0, fileDelim + 1);
newPath += g_FileList[pageIndex].PriImage;
frmDrawing.location.href = newPath;
SetPNZDisplay (pageIndex);
}
}
function CurPageUpdate (pageIndex)
{
if (pageIndex >= 0)
{
g_CurPageIndex = pageIndex;
SetCurPageInGoto (pageIndex);
var divDetails = frmToolbar.document.all("divDetails");
if (divDetails)
{
var displayStatus = "block";
if (!viewMgr || !viewMgr.SupportsDetails)
{
displayStatus = "none";
}
divDetails.style.display = displayStatus;
}
var divSearch = frmToolbar.document.all("divSearch");
if (divSearch)
{
var displayStatus = "block";
if (!viewMgr || !viewMgr.SupportsSearch)
{
displayStatus = "none";
}
divSearch.style.display = displayStatus;
}
SetPNZDisplay (pageIndex);
LoadZoom ();
}
}
function FramePageLoaded ()
{
if (isUpLevel && viewMgr == null)
{
var curPath = frmDrawing.location.href;
var fileDelim = curPath.lastIndexOf ('/');
if (fileDelim >= 0)
{
var fileName = curPath.substring (fileDelim + 1, curPath.length);
var pageIndex = PageIndexFromFileName (fileName);
SetCurPageInGoto (pageIndex);
SetPNZDisplay (pageIndex);
}
}
}
function LoadZoom ()
{
var zoomWidget = frmToolbar.ifrmPNZ;
if (zoomWidget)
{
if (g_ZoomLoaded)
{
zoomWidget.findContent();
PageLoadedDoCallback ();
}
else
{
window.setTimeout("LoadZoom()", 500);
}
}
else
{
PageLoadedDoCallback ();
}
}
function SetCurPageInGoto (pageIndex)
{
var gotoPageSelect = frmToolbar.document.all("Select1");
if (gotoPageSelect != null)
{
gotoPageSelect.value = pageIndex;
}
}
function SetPNZDisplay (pageIndex)
{
var divPNZ = frmToolbar.document.all("divPNZ");
if (divPNZ)
{
var displayStatus = "block";
if (g_FileList[pageIndex].PageID < 0)
{
displayStatus = "none";
}
divPNZ.style.display = displayStatus;
}
}
function ViewMgrDefaultFind()
{
return;
}
function ViewMgrDefaultResize(size)
{
return;
}
g_callBackFunctionArray = new Array();
function PageLoadedDoCallback()
{
if (g_WidgetsLoaded)
{
for( var i=0; i < g_callBackFunctionArray.length; i++ )
{
g_callBackFunctionArray[i]();
}
g_callBackFunctionArray = new Array();
}
else
{
window.setTimeout("PageLoadedDoCallback()", 500);
}
}
function ParseParams (strRawParams)
{
strRawParams = strRawParams.substring(1);
var arrayParamTokens = strRawParams.split('&');
for (var count = 0; count < arrayParamTokens.length; count++)
{
arrayParamTokens[count] = unescape(arrayParamTokens[count]);
this[count] = arrayParamTokens[count].substring(0, arrayParamTokens[count].indexOf('='));
this[this[count]] = arrayParamTokens[count].substring(arrayParamTokens[count].indexOf('=') + 1);
}
return this;
}
var gParams = ParseParams (location.search);
var g_PageParamValue = gParams['page'];
if (g_PageParamValue != null &&
g_PageParamValue.length > 0)
{
var pageIndex = PageIndexFromName (g_PageParamValue);
if (pageIndex > 0 && pageIndex < g_FileList.length)
{
g_CurPageIndex = pageIndex;
}
}
else
{
g_PageParamValue = null;
}
var g_FirstPageToLoad = g_PageParamValue;
var g_ZoomParamValue = gParams['zoom'];
if (g_ZoomParamValue != null && g_ZoomParamValue.length > 0)
{
g_ZoomParamValue = 1.0 * g_ZoomParamValue;
if (g_ZoomParamValue >= 10 && g_ZoomParamValue <= 500)
{
g_callBackFunctionArray[g_callBackFunctionArray.length] = function () { if (viewMgr && viewMgr.Zoom) { viewMgr.Zoom(g_ZoomParamValue); } };
}
}
var g_ShapeParamValue = gParams['shape'];
if (g_ShapeParamValue != null && g_ShapeParamValue.length > 0)
{
if (g_PageParamValue != null && g_PageParamValue.length > 0)
{
g_callBackFunctionArray[g_callBackFunctionArray.length] = function () { var shapeNode = FindShapeXMLByName (g_PageParamValue, g_ShapeParamValue); if (shapeNode) { frmToolbar.TreeSelect (g_FileList[g_CurPageIndex].PageID, shapeNode.attributes.getNamedItem ("ID").text); } };
}
else
{
g_ShapeParamValue = null;
}
}
var g_SearchParamValue = gParams['search'];
if (g_SearchParamValue != null && g_SearchParamValue.length > 0)
{
g_callBackFunctionArray[g_callBackFunctionArray.length] = function () { if (frmToolbar.theForm) { frmToolbar.theForm.findString.value = g_SearchParamValue; } };
g_callBackFunctionArray[g_callBackFunctionArray.length] = function () { var goButton = frmToolbar.document.all('GoButton'); if(goButton) { goButton.click(); } };
}
var strHLTooltipText = "Click to follow hyperlink.";
var strPropsTooltipText = "Ctrl + Click to view details.";
var strFocusHLTooltipText = "Enter to follow hyperlink.";
var strFocusPropsTooltipText = "Ctrl + Enter to view details.";
function UpdateTooltip (element, pageID, shapeID)
{
if (isUpLevel)
{
var strHL, strProps;
if(frmDrawing.event.type == "focus")
{
strHL = strFocusHLTooltipText;
strProps = strFocusPropsTooltipText;
}
else
{
strHL = strHLTooltipText;
strProps = strPropsTooltipText;
}
var strTooltip = "";
if (element.origTitle)
{
strTooltip = element.origTitle.toString();
}
var shapeNode = FindShapeXML (pageID, shapeID);
if( shapeNode != null )
{
var propColl = shapeNode.selectNodes ("Prop");
if (propColl != null && propColl.length > 0)
{
if (strTooltip.length > 0)
{
strTooltip += "\n";
}
strTooltip += strProps;
}
}
var hlObj = GetHLAction (shapeNode, pageID, shapeID);
if (hlObj != null && (hlObj.DoFunction.length > 0 || hlObj.Hyperlink.length > 0))
{
if (strTooltip.length > 0)
{
strTooltip += "\n";
}
strTooltip += strHL;
}
element.title = strTooltip;
if (element.alt != null)
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -