home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2001 July / VPR0107A.BIN / SHDOCLC.DLL / HTML / IEERROR.DLG < prev    next >
Text File  |  2000-06-19  |  10KB  |  365 lines

  1. <HTML id=dlgError STYLE="font-family:MS UI Gothic; font-size:9pt; width:41.0025em; height:13.7em;">
  2. <HEAD>
  3. <meta http-equiv="Content-Type" content="text/html; charset=shift_jis">
  4. <TITLE id=dialogTitle>
  5. Internet Explorer
  6. </TITLE>
  7. <style type="text/css">
  8. p,td,input,button { font:9pt MS UI Gothic; cursor:default}
  9. body { font:9pt MS UI Gothic; color: windowtext;
  10.  background:menu;}
  11. </style>
  12. <SCRIPT LANGUAGE="JavaScript" defer>
  13. window.onerror = HandleError
  14. document.ondragstart = NoDragging
  15. function NoDragging()
  16. {
  17. window.event.returnValue = false;
  18. }
  19. var g_errList;
  20. var g_detailsPaneOpen;
  21. function HandleError(message, url, line)
  22. {
  23. var L_Dialog_ErrorMessage = "このダイアログでエラーが発生しました。";
  24. var L_ErrorNumber_Text = "エラー : ";
  25. var str = L_Dialog_ErrorMessage + "\n\n"
  26.  + L_ErrorNumber_Text + line + "\n"
  27.  + message;
  28. alert (str);
  29. window.close();
  30. return true;
  31. }
  32. function updateTabIndices()
  33. {
  34. if (g_detailsPaneOpen)
  35. {
  36.  var nextIndex = 3;
  37.  if (!btnPrevErr.disabled)
  38.  {
  39.   btnPrevErr.tabindex = nextIndex++;
  40.  }
  41.  if (!btnNextErr.disabled)
  42.  {
  43.   btnNextErr.tabindex = nextIndex++;
  44.  }
  45.  chkAlwaysShowErrs.tabindex = nextIndex;
  46. }
  47. else
  48. {
  49.  btnPrevErr.tabindex = -1;
  50.  btnNextErr.tabindex = -1;
  51.  chkAlwaysShowErrs.tabindex = 3;
  52. }
  53. }
  54. function loadBdy()
  55. {
  56. g_errList = window.dialogArguments;
  57. chkAlwaysShowErrs.checked = g_errList.getPerErrorDisplay();
  58. g_errList.setPerErrorDisplay(chkAlwaysShowErrs.checked);
  59. chkAlwaysShowErrs.disabled = g_errList.getAlwaysShowLockState();
  60. g_detailsPaneOpen = g_errList.getDetailsPaneOpen();
  61. assureControlState();
  62. btnOK.onclick = new Function("btnOKClick()");
  63. btnOK.onkeydown = new Function("SwitchFocus()");
  64. btnDetails.onclick = new Function("btnDetailsClick()");
  65. btnDetails.onkeydown = new Function("SwitchFocus()");
  66. btnNextErr.onclick = new Function("btnNextErrClick()");
  67. btnNextErr.onkeydown = new Function("SwitchFocus()");
  68. btnPrevErr.onclick = new Function("btnPrevErrClick()");
  69. btnPrevErr.onkeydown = new Function("SwitchFocus()");
  70. updateErrorInfo();
  71. if (!g_errList.canRetreatError())
  72. {
  73.  btnPrevErr.disabled = true;
  74. }
  75. if (!g_errList.canAdvanceError())
  76. {
  77.  btnNextErr.disabled = true;
  78. }
  79. btnOK.focus();
  80. function updateErrorInfo()
  81. {
  82. spnLine.innerText  = g_errList.getErrorLine();
  83. spnCharacter.innerText = g_errList.getErrorChar();
  84. spnCode.innerText  = g_errList.getErrorCode();
  85. divError.innerText  = g_errList.getErrorMsg();
  86. divURL.innerText  = g_errList.getErrorUrl();
  87. }
  88. function SwitchFocus()
  89. {
  90. var HTML_KEY_ARROWLEFT = 37;
  91. var HTML_KEY_ARROWUP = 38;
  92. var HTML_KEY_ARROWRIGHT = 39;
  93. var HTML_KEY_ARROWDOWN = 40;
  94. var iCode = event.keyCode;
  95. var strSourceID = event.srcElement.id;
  96. var fTabForward;
  97. if (iCode < HTML_KEY_ARROWLEFT || iCode > HTML_KEY_ARROWDOWN)
  98. {
  99.  return;
  100. }
  101. var fTabForward = iCode == HTML_KEY_ARROWRIGHT ||
  102.      iCode == HTML_KEY_ARROWDOWN;
  103. if (g_detailsPaneOpen)
  104. {
  105.  if (fTabForward)
  106.  {
  107.   if (strSourceID == "btnPrevErr")
  108.   {
  109.    if (!btnNextErr.disabled)
  110.    {
  111.     btnNextErr.focus();
  112.    }
  113.   }
  114.   else if (strSourceID == "btnOK")
  115.   {
  116.    btnDetails.focus();
  117.   }
  118.   else if (strSourceID == "chkAlwaysShowErrs")
  119.   {
  120.    btnOK.focus();
  121.   }
  122.  }
  123.  else
  124.  {
  125.   if (strSourceID == "btnNextErr")
  126.   {
  127.    if (!btnPrevErr.disabled)
  128.    {
  129.     btnPrevErr.focus();
  130.    }
  131.   }
  132.   else if (strSourceID == "btnDetails")
  133.   {
  134.    btnOK.focus();
  135.   }
  136.   else if (strSourceID == "btnOK")
  137.   {
  138.    chkAlwaysShowErrs.focus();
  139.   }
  140.  }
  141. }
  142. }
  143. function btnOKClick()
  144. {
  145. g_errList.setPerErrorDisplay(chkAlwaysShowErrs.checked);
  146. g_errList.setDetailsPaneOpen(g_detailsPaneOpen);
  147. window.close();
  148. }
  149. function assureControlState()
  150. {
  151. var L_DetailsExpand_Text = "詳細の表示(<u>D</u>) >>";
  152. var L_DetailsCollapse_Text = "詳細を隠す(<u>D</u>) <<";
  153. if (g_detailsPaneOpen)
  154. {
  155.  btnDetails.innerHTML = L_DetailsCollapse_Text;
  156.  window.dialogHeight = 27.2;
  157.  divDetails.style.display = "";
  158.  divButtons2.style.display = "";
  159.  trHR.style.display = "";
  160. }
  161. else
  162. {
  163.  btnDetails.innerHTML = L_DetailsExpand_Text;
  164.  divDetails.style.display = "none";
  165.  divButtons2.style.display = "none";
  166.  trHR.style.display = "none";
  167.  window.dialogHeight = 13.7;
  168. }
  169. }
  170. function btnDetailsClick()
  171. {
  172. g_detailsPaneOpen = !g_detailsPaneOpen;
  173. assureControlState();
  174. if (g_detailsPaneOpen)
  175. {
  176.  if (!btnNextErr.disabled)
  177.  {
  178.   btnNextErr.focus();
  179.  }
  180.  else if (!btnPrevErr.disabled)
  181.  {
  182.   btnPrevErr.focus();
  183.  }
  184.  else
  185.  {
  186.   btnOK.focus();
  187.  }
  188. }
  189. else
  190. {
  191.  btnDetails.focus();
  192. }
  193. updateTabIndices();
  194. }
  195. function btnNextErrClick()
  196. {
  197. g_errList.advanceError();
  198. updateErrorInfo();
  199. if (btnPrevErr.disabled)
  200. {
  201.  btnPrevErr.disabled = false;
  202. }
  203. if (!g_errList.canAdvanceError())
  204. {
  205.  btnNextErr.disabled = true;
  206.  btnPrevErr.focus();
  207. }
  208. updateTabIndices();
  209. }
  210. function btnPrevErrClick()
  211. {
  212. g_errList.retreatError();
  213. updateErrorInfo();
  214. if (btnNextErr.disabled)
  215. {
  216.  btnNextErr.disabled = false;
  217. }
  218. if (!g_errList.canRetreatError())
  219. {
  220.  btnPrevErr.disabled = true;
  221.  btnNextErr.focus();
  222. }
  223. updateTabIndices();
  224. }
  225. function BodyOnKeyPress(nCode)
  226. {
  227. if (nCode == 27) 
  228. {
  229.  window.close();
  230.  return;
  231. }
  232. }
  233. </SCRIPT>
  234. </HEAD>
  235. <BODY ID=bdy style="background: threedface" onLoad=loadBdy() onkeydown=BodyOnKeyPress(event.keyCode) onkeypress=BodyOnKeyPress(event.keyCode) topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0>
  236. <table id=tblMain tabindex=-1 cellspacing=0 border=0 style="background:buttonface; border-collapse:collapse; width:26.1em;">
  237. <TR>
  238. <!-- Icon image -->
  239. <TD id=tdIcon valign=top style="padding-left:0.9625em; padding-top:0.9295em; padding-right:0.385em;">
  240. <img id=imgIcon src=warning.gif>
  241. </TD>
  242. <TD style="padding-top:0.5577em;">
  243. <!-- Inner table start -->
  244. <table tabindex=-1 cellspacing=0 border=0 style="background:buttonface; border-collapse:collapse">
  245. <!-- Error message dialog -->
  246. <TR>
  247. <TD id=tdMsg style="padding-left:0.48125em; padding-right:0em">
  248.  Web ページに問題があるため、正しく表示または機能しなくなる可能性があります。今後、ステータス バーに表示された警告アイコンをダブルクリックすると、このメッセージを表示できます。
  249. </TD>
  250. </TR>
  251. <!-- Checkbox -->
  252. <TR>
  253. <TD style="padding-top:0.46475em;">
  254.  <input id=chkAlwaysShowErrs tabindex=5 accesskey=a type=checkbox>
  255.  <label for=chkAlwaysShowErrs id=labelChk>
  256.  ページにエラーがあるときは、このメッセージをいつも表示する(<u>A</u>)
  257.  </label>
  258. </TD>
  259. </TR>
  260. <!-- OK button -->
  261. <TR>
  262. <TD id=Buttons align=right style="padding-top:1.20835em;">
  263.  <table id=tblMain tabindex=-1 cellspacing=0 border=0 style="background:buttonface; border-collapse:collapse;">
  264.  <tr>
  265.  <td style="padding-right:0.385em; padding-left:0em">
  266.   <button id=btnOK tabindex=1
  267.   style="width:8em; height:1.8em;"
  268.   type=submit>
  269.   OK
  270.   </button>
  271.  </td>
  272.  <td>
  273.   <button id=btnDetails tabindex=2
  274.   style="width:8em; height:1.8em;"
  275.   accesskey=d>
  276.      詳細表示(<u>D</u>) >></button>
  277.  </td>
  278.  </tr>
  279.  </table>
  280. </TD>
  281. </TR>
  282. </TABLE>
  283. <!-- Inner table end -->
  284. </TD>
  285. </TR>
  286. <!-- HR -->
  287. <TR id=trHR style="display:none;">
  288. <TD colspan=2 style="padding-left:1.155em; padding-top:0.09295em; padding-right:0.28875em;">
  289. <hr>
  290. </TD>
  291. </TR>
  292. </TABLE>
  293. <DIV id=divDetails tabindex=-1 style="border:inset; overflow:auto; position:absolute; background:threedface; font-family:MS UI Gothic; 
  294.          font-size:9pt; top:12.4553em; width:37.9225em; height:8.1796em; margin-left:1.155em; margin-right: 0em; display:none">
  295. <TABLE id=tbl2 tabindex=-1 cellspacing=0 border=0 style="border-collapse:collapse; background:buttonface; font-family:MS UI Gothic;
  296.               font-size:9pt;">
  297. <TBODY>
  298. <TR valign=top>
  299. <TD id=tdLine nowrap style="padding-top:0.3718em; padding-left:0.48125em; padding-right:0em">
  300. ライン :
  301. </TD>
  302. <TD id=tdSpanLine style="padding-top:0.46475em;">
  303. <SPAN id=spnLine></SPAN>
  304. </TD>
  305. </TR>
  306. <TR valign=top>
  307. <TD id=tdChar nowrap style="padding-left:0.48125em; padding-right:0em">
  308. 文字 :
  309. </TD>
  310. <TD id=tdSpanCharacter>
  311. <SPAN id=spnCharacter></SPAN>
  312. </TD>
  313. </TR>
  314. <TR valign=top>
  315. <TD id=tdError nowrap style="padding-left:0.48125em; padding-right:0em">
  316. エラー :
  317. </TD>
  318. <TD id=tdSpanError>
  319. <DIV id=divError tabindex=-1 style="background: threedface;
  320. font-family: MS UI Gothic; font-size:9pt; width:32.1475em;"></DIV>
  321. </TD>
  322. </TR>
  323. <TR valign=top>
  324. <TD id=tdCode nowrap style="padding-left:0.48125em; padding-right:0em">
  325. コード :
  326. </TD>
  327. <TD id=tdSpanCode>
  328. <SPAN id=spnCode></SPAN>
  329. </TD>
  330. </TR>
  331. <TR valign=top>
  332. <TD id=tdURL nowrap style="padding-left:0.48125em; padding-right:0em; padding-bottom:0.09295em;">
  333. URL:
  334. </TD>
  335. <TD id=tdSpanURL>
  336. <DIV id=divURL tabindex=-1 style="background:threedface; font-family:MS UI Gothic; font-size:9pt; width:32.1475em;"></DIV>
  337. </TEXTAREA>
  338. </TD>
  339. </TR>
  340. </TBODY>
  341. </TABLE>
  342. </DIV>
  343. <DIV id=divButtons2 tabindex=-1 align=right style="background:buttonface; position:absolute; font-family:MS UI Gothic; font-size:9pt; top:21.1926em;
  344.   width:38.01875em; margin-left:1.155em; margin-right:0em; display:none">
  345.  <table id=tblMain tabindex=-1 cellspacing=0 border=0 style="background:buttonface; border-collapse:collapse;">
  346.  <tr>
  347.  <td style="padding-right:0.385em; padding-left:0em">
  348.   <button id=btnPrevErr tabindex=3 type=reset accesskey=p
  349.   style="font-family: MS UI Gothic; font-size:9pt; width:8em; height:1.8em;">
  350.    以前(<u>P</u>)
  351.   </button>
  352.  </td>
  353.  <td>
  354.   <button id=btnNextErr tabindex=4 type=reset accesskey=n
  355.   style="font-family: MS UI Gothic; font-size:9pt; width:8em; height:1.8em;">
  356.    次回(<u>N</u>)
  357.   </button>
  358.  </td>
  359.  </tr>
  360.  </table>
  361. </DIV>
  362. </BODY>
  363. </HTML>
  364.