home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 June
/
06_02.iso
/
service
/
ie6
/
IEW2K_3.CAB
/
shdoclc.dll
/
HTML
/
ANALYZE.DLG
< prev
next >
Wrap
Text File
|
2001-10-04
|
9KB
|
238 lines
<HTML id=dlgAnalyze STYLE="font-family: MS Shell Dlg; font-size: 8pt;
width: 30em; height: 33em">
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes">
<TITLE id=dialogTitle>
└φαδΦτ ΣεΩ≤∞σφ≥α
</TITLE>
<SCRIPT LANGUAGE="JavaScript" defer>
window.onerror = HandleError
function HandleError(message, url, line)
{
var L_Dialog_ErrorMessage = "┬ ²≥ε∞ ΣΦαδεπεΓε∞ εΩφσ ∩≡εΦτε°δα ε°ΦßΩα.";
var L_ErrorNumber_Text = "╬°ΦßΩα: ";
var str = L_Dialog_ErrorMessage + "\n\n"
+ L_ErrorNumber_Text + line + "\n"
+ message;
alert (str);
window.close();
return true;
}
function otherDocument()
{
return window.dialogArguments.document;
}
function loadBdy()
{
document.all.btnOk.onclick = new Function("window.close();");
document.onkeyup = new Function("documentOnKeyUp()");
runAnalysis();
}
function documentOnKeyUp()
{
if (window.event.keyCode == 27)
{
window.close();
}
}
function runAnalysis()
{
var errorsFound, reportLocation;
errorsFound = false;
reportLocation = document.all.ReportArea;
initializeResults(reportLocation);
errorsFound = errorsFound || checkBodyWithinFrameset(reportLocation);
errorsFound = errorsFound || checkAnythingAfterFrameset(reportLocation);
errorsFound = errorsFound || checkUnloadedComponents(reportLocation);
errorsFound = errorsFound || checkNonApartmentControls(reportLocation);
errorsFound = errorsFound || checkUnloadedStyleSheets(reportLocation);
if (errorsFound == false) {
reportNothingFound(reportLocation);
}
}
function initializeResults(reportLocation)
{
reportLocation.innerHTML = " ";
}
function reportNothingFound(reportLocation)
{
var L_NoErrors_Text = "═σ≥ ε°ΦßεΩ.";
reportLocation.innerHTML = L_NoErrors_Text;
}
function checkBodyWithinFrameset(reportLocation)
{
var theDocument;
var framesets, bodies;
var retVal;
var L_FramesetInBody_Text = "▌≥ε≥ ΣεΩ≤∞σφ≥ ∞εµσ≥ ε≥εß≡αµα≥ⁿ± φσ∩≡αΓΦδⁿφε, ≥αΩ ΩαΩ Γφ≤≥≡Φ ≥σπα BODY Γ ΣεΩ≤∞σφ≥σ ±εΣσ≡µΦ≥± ≥σπ FRAMESET. └Γ≥ε≡ ±≥≡αφΦ÷√ ∞εµσ≥ Φ±∩≡αΓΦ≥ⁿ ²≥ε ±δσΣ≤■∙Φ∞ εß≡ατε∞:<OL><li>╙ΣαδΦ≥ⁿ ≥σπ BODY.</li><li>╙ßσΣΦ≥ⁿ± , ≈≥ε ∞σµΣ≤ HEAD Φ FRAMESET φσ≥ Σε∩εδφΦ≥σδⁿφ√⌡ ΩεΣεΓ HTML.</li></ol><br><hr>";
retVal = false;
theDocument = otherDocument();
framesets = theDocument.all.tags("frameset");
if (framesets.length > 0) {
bodies = theDocument.all.tags("body");
if (bodies.length > 0) {
reportLocation.insertAdjacentHTML("BeforeEnd", L_FramesetInBody_Text );
retVal = true;
}
}
return retVal;
}
function checkAnythingAfterFrameset(reportLocation)
{
var L_ContentAfterFrameset_Text = "┬ετ∞εµφε, ²≥ε≥ ΣεΩ≤∞σφ≥ ε≥εß≡αµασ≥± φσ∩≡αΓΦδⁿφε, ≥αΩ ΩαΩ Γ φσ∞ ∩ε±δσ FRAMESET Φ∞σσ≥± ±εΣσ≡µΦ∞εσ.<br><hr>";
var theDocument;
var framesets;
var i, startIndex;
var retVal;
retVal = false;
theDocument = otherDocument();
framesets = theDocument.all.tags("frameset");
if (framesets.length > 0) {
startIndex = framesets(0).sourceIndex;
if (window.dialogArguments.anythingAfterFrameset) {
reportLocation.insertAdjacentHTML("BeforeEnd", L_ContentAfterFrameset_Text );
retVal = true;
}
}
return retVal;
}
function checkUnloadedComponents(reportLocation)
{
var theDocument;
var objects, applets, embeds;
var retVal;
retVal = false;
theDocument = otherDocument();
objects = theDocument.all.tags("object");
applets = theDocument.all.tags("applet");
embeds = theDocument.all.tags("embed");
retVal = checkReadyStateComplete(objects, reportLocation);
retVal = retVal || checkReadyStateComplete(applets, reportLocation);
retVal = retVal || checkReadyStateComplete(embeds, reportLocation);
return retVal;
}
function checkReadyStateComplete(objects, reportLocation)
{
var L_ObjectNotInstalled_Text = "╤δσΣ≤■∙ΦΘ OBJECT φσ ß√δ ∩≡αΓΦδⁿφε ≤±≥αφεΓδσφ.<BR>";
var L_AppletNotInstalled_Text = "╤δσΣ≤■∙ΦΘ APPLET φσ ß√δ ∩≡αΓΦδⁿφε ≤±≥αφεΓδσφ.<BR>";
var L_EmbedNotInstalled_Text = "╤δσΣ≤■∙ΦΘ εß·σΩ≥ EMBED φσ ß√δ ∩≡αΓΦδⁿφε ≤±≥αφεΓδσφ.<BR>";
var L_ObjectNotInstalledReasons_Text = "<br><br>┬ετ∞εµφε, ²≥ε ∩≡εΦτε°δε ∩ε εΣφεΘ Φτ ±δσΣ≤■∙Φ⌡ ∩≡Φ≈Φφ:<OL><LI>┬α°α ≥σΩ≤∙α φα±≥≡εΘΩα ßστε∩α±φε±≥Φ τα∩≡σ∙ασ≥ Φ±∩εδⁿτεΓαφΦσ ²≥επε OBJECT.</li><li>▌≥ε≥ OBJECT φσ ß√δ ∩≡αΓΦδⁿφε ≤±≥αφεΓδσφ φα Γα° Ωε∞∩ⁿ■≥σ≡.</li><li>╤≥≡αφΦ÷α ΦδΦ OBJECT ß√δΦ ±ετΣαφ√ φσ∩≡αΓΦδⁿφε.</li></ul><hr>";
var L_AppletNotInstalledReasons_Text = "<br><br>┬ετ∞εµφε, ²≥ε ∩≡εΦτε°δε ∩ε εΣφεΘ Φτ ±δσΣ≤■∙Φ⌡ ∩≡Φ≈Φφ:<OL><LI>┬α°α ≥σΩ≤∙α φα±≥≡εΘΩα ßστε∩α±φε±≥Φ τα∩≡σ∙ασ≥ Φ±∩εδⁿτεΓαφΦσ ²≥επε APPLET.</li><li>▌≥ε≥ APPLET φσ ß√δ ∩≡αΓΦδⁿφε ≤±≥αφεΓδσφ φα Γα° Ωε∞∩ⁿ■≥σ≡.</li><li>╤≥≡αφΦ÷α ΦδΦ APPLET ß√δΦ ±ετΣαφ√ φσ∩≡αΓΦδⁿφε.</li></ul><hr>";
var L_EmbedNotInstalledReasons_Text = "<br><br>┬ετ∞εµφε, ²≥ε ∩≡εΦτε°δε ∩ε εΣφεΘ Φτ ±δσΣ≤■∙Φ⌡ ∩≡Φ≈Φφ:<OL><LI>┬α°α ≥σΩ≤∙α φα±≥≡εΘΩα ßστε∩α±φε±≥Φ τα∩≡σ∙ασ≥ Φ±∩εδⁿτεΓαφΦσ ²≥επε EMBED.</li><li>▌≥ε≥ EMBED φσ ß√δ ∩≡αΓΦδⁿφε ≤±≥αφεΓδσφ φα Γα° Ωε∞∩ⁿ■≥σ≡.</li><li>╤≥≡αφΦ÷α ΦδΦ EMBED ß√δΦ ±ετΣαφ√ φσ∩≡αΓΦδⁿφε.</li></ul><hr>";
var strNotInstalled;
var strNotInstalledReason;
var i, element;
var retVal;
retVal = false;
if (objects == null)
return retVal;
for (i=0; i < objects.length; i++) {
element = objects(i);
if (element.readyState != 4 && element.readyState != "complete") {
switch (element.tagName.toLowerCase())
{
case "object":
strNotInstalled = L_ObjectNotInstalled_Text;
strNotInstalledReason = L_ObjectNotInstalledReasons_Text;
break;
case "applet":
strNotInstalled = L_AppletNotInstalled_Text;
strNotInstalledReason = L_AppletNotInstalledReasons_Text;
break;
case "embed":
strNotInstalled = L_EmbedNotInstalled_Text;
strNotInstalledReason = L_EmbedNotInstalledReasons_Text;
break;
}
reportLocation.insertAdjacentHTML("BeforeEnd", strNotInstalled);
reportLocation.insertAdjacentText("BeforeEnd", element.outerHTML);
reportLocation.insertAdjacentHTML("BeforeEnd", strNotInstalledReason);
retVal = true;
}
}
return retVal;
}
function checkNonApartmentControls(reportLocation)
{
var L_ObjectNotApartmentModel_Text = "╤≤∙σ±≥Γ≤σ≥ Γσ≡ε ≥φε±≥ⁿ φσφαΣσµφεΘ ≡αßε≥√ OBJECT ∩≡Φ φσΩε≥ε≡√⌡ ≤±δεΓΦ ⌡, ∩ε±ΩεδⁿΩ≤ εφ φσ Φ±∩εδⁿτ≤σ≥ ∞εΣσδⁿ Apartment threading.<br>";
var theDocument;
var objects;
var i;
var retVal;
retVal = false;
theDocument = otherDocument();
objects = theDocument.all.tags("object");
for (i=0; i < objects.length; i++) {
element = objects(i);
nonApartmentModel = checkCLSIDForNonApartmentModel(element);
retVal = retVal || nonApartmentModel;
if (nonApartmentModel == true) {
reportLocation.insertAdjacentHTML("BeforeEnd", L_ObjectNotApartmentModel_Text);
reportLocation.insertAdjacentText("BeforeEnd", element.outerHTML);
reportLocation.insertAdjacentHTML("BeforeEnd", "<br><hr>");
}
}
return retVal;
}
function checkCLSIDForNonApartmentModel(element) {
return !(window.dialogArguments.isApartmentModel(element));
}
function checkUnloadedStyleSheets(reportLocation)
{
var theDocument;
var links;
var retVal;
retVal = false;
theDocument = otherDocument();
links = theDocument.all.tags("link");
retVal = checkLinkReadyStateComplete(links, reportLocation);
return retVal;
}
function checkLinkReadyStateComplete(objects, reportLocation)
{
var i, element;
var retVal;
var L_StyleSheetNotInstalled_Text = "┬ετ∞εµφε, ΣεΩ≤∞σφ≥ ε≥εß≡αµασ≥± φσ∩≡αΓΦδⁿφε, ∩ε≥ε∞≤ ≈≥ε ±δσΣ≤■∙ΦΘ ±∩Φ±εΩ ±≥ΦδσΘ φσ ≤±≥αφεΓδσφ: ";
retVal = false;
if (objects == null)
return retVal;
for (i=0; i < objects.length; i++) {
element = objects(i);
if (element.rel.toLowerCase() == "stylesheet"
|| element.rel.toLowerCase() == "alternate stylesheet")
{
if (element.readyState != "complete" && element.readyState != 4) {
reportLocation.insertAdjacentHTML("BeforeEnd", L_StyleSheetNotInstalled_Text + element.href + "<BR><hr>");
retVal = true;
}
}
}
return retVal;
}
</SCRIPT>
</HEAD>
<BODY ID=bdy onLoad="loadBdy()" style="font-family: 'MS Shell Dlg';
font-size: 8pt; background: threedface; color: windowtext;"
topmargin=0 scroll=no>
<br id=brAnalysis> └φαδΦτ ≥σΩ≤∙σπε ΣεΩ≤∞σφ≥α:<br>
<br>
<DIV id=ReportArea style="height: 75%; width: 93%;
position: absolute; left: 5%; top: 12%; overflow: auto; padding: 3px;
border-style: solid; border-width: 1px; border-color: threeddarkshadow">
═σ≥ ε°ΦßεΩ.
</DIV>
<br id=br2><P id=par1> </P>
<DIV id=divButton style="font-family: MS Shell Dlg; font-size: 8pt;
width: 8em; height: 2.2em; position: absolute;
top: 27.1em; left: 20em; background: threedface;">
</DIV>
<BUTTON id=btnOk tabIndex=55
style="font-family: MS Shell Dlg; font-size: 8pt;
width: 7em; height: 2.2em; position: absolute;
top: 27.5em; left: 21em" type=submit>
╬╩
</BUTTON>
</BODY>
</HTML>