windows_string_sort.htm 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. <html xmlns:o="urn:schemas-microsoft-com:office:office"
  2. xmlns:x="urn:schemas-microsoft-com:office:excel"
  3. xmlns="http://www.w3.org/TR/REC-html40">
  4. <head>
  5. <meta name="Excel Workbook Frameset">
  6. <meta http-equiv=Content-Type content="text/html; charset=windows-1252">
  7. <meta name=ProgId content=Excel.Sheet>
  8. <meta name=Generator content="Microsoft Excel 10">
  9. <link rel=File-List href="windows_string_sort_files/filelist.xml">
  10. <link rel=Edit-Time-Data href="windows_string_sort_files/editdata.mso">
  11. <link rel=OLE-Object-Data href="windows_string_sort_files/oledata.mso">
  12. <!--[if gte mso 9]><xml>
  13. <o:DocumentProperties>
  14. <o:Author>Steve</o:Author>
  15. <o:LastAuthor>Steve</o:LastAuthor>
  16. <o:Created>2009-02-02T02:13:19Z</o:Created>
  17. <o:LastSaved>2009-05-03T18:30:26Z</o:LastSaved>
  18. <o:Company>Home</o:Company>
  19. <o:Version>10.2625</o:Version>
  20. </o:DocumentProperties>
  21. <o:OfficeDocumentSettings>
  22. <o:DownloadComponents/>
  23. <o:LocationOfComponents HRef="file:///D:\"/>
  24. </o:OfficeDocumentSettings>
  25. </xml><![endif]--><![if !supportTabStrip]>
  26. <link id="shLink" href="windows_string_sort_files/chart001.htm">
  27. <link id="shLink" href="windows_string_sort_files/sheet001.htm">
  28. <link id="shLink">
  29. <script language="JavaScript">
  30. <!--
  31. var c_lTabs=2;
  32. var c_rgszSh=new Array(c_lTabs);
  33. c_rgszSh[0] = "Runtimes";
  34. c_rgszSh[1] = "Runtime Data";
  35. var c_rgszClr=new Array(8);
  36. c_rgszClr[0]="window";
  37. c_rgszClr[1]="buttonface";
  38. c_rgszClr[2]="windowframe";
  39. c_rgszClr[3]="windowtext";
  40. c_rgszClr[4]="threedlightshadow";
  41. c_rgszClr[5]="threedhighlight";
  42. c_rgszClr[6]="threeddarkshadow";
  43. c_rgszClr[7]="threedshadow";
  44. var g_iShCur;
  45. var g_rglTabX=new Array(c_lTabs);
  46. function fnGetIEVer()
  47. {
  48. var ua=window.navigator.userAgent
  49. var msie=ua.indexOf("MSIE")
  50. if (msie>0 && window.navigator.platform=="Win32")
  51. return parseInt(ua.substring(msie+5,ua.indexOf(".", msie)));
  52. else
  53. return 0;
  54. }
  55. function fnBuildFrameset()
  56. {
  57. var szHTML="<frameset rows=\"*,18\" border=0 width=0 frameborder=no framespacing=0>"+
  58. "<frame src=\""+document.all.item("shLink")[0].href+"\" name=\"frSheet\" noresize>"+
  59. "<frameset cols=\"54,*\" border=0 width=0 frameborder=no framespacing=0>"+
  60. "<frame src=\"\" name=\"frScroll\" marginwidth=0 marginheight=0 scrolling=no>"+
  61. "<frame src=\"\" name=\"frTabs\" marginwidth=0 marginheight=0 scrolling=no>"+
  62. "</frameset></frameset><plaintext>";
  63. with (document) {
  64. open("text/html","replace");
  65. write(szHTML);
  66. close();
  67. }
  68. fnBuildTabStrip();
  69. }
  70. function fnBuildTabStrip()
  71. {
  72. var szHTML=
  73. "<html><head><style>.clScroll {font:8pt Courier New;color:"+c_rgszClr[6]+";cursor:default;line-height:10pt;}"+
  74. ".clScroll2 {font:10pt Arial;color:"+c_rgszClr[6]+";cursor:default;line-height:11pt;}</style></head>"+
  75. "<body onclick=\"event.returnValue=false;\" ondragstart=\"event.returnValue=false;\" onselectstart=\"event.returnValue=false;\" bgcolor="+c_rgszClr[4]+" topmargin=0 leftmargin=0><table cellpadding=0 cellspacing=0 width=100%>"+
  76. "<tr><td colspan=6 height=1 bgcolor="+c_rgszClr[2]+"></td></tr>"+
  77. "<tr><td style=\"font:1pt\">&nbsp;<td>"+
  78. "<td valign=top id=tdScroll class=\"clScroll\" onclick=\"parent.fnFastScrollTabs(0);\" onmouseover=\"parent.fnMouseOverScroll(0);\" onmouseout=\"parent.fnMouseOutScroll(0);\"><a>&#171;</a></td>"+
  79. "<td valign=top id=tdScroll class=\"clScroll2\" onclick=\"parent.fnScrollTabs(0);\" ondblclick=\"parent.fnScrollTabs(0);\" onmouseover=\"parent.fnMouseOverScroll(1);\" onmouseout=\"parent.fnMouseOutScroll(1);\"><a>&lt</a></td>"+
  80. "<td valign=top id=tdScroll class=\"clScroll2\" onclick=\"parent.fnScrollTabs(1);\" ondblclick=\"parent.fnScrollTabs(1);\" onmouseover=\"parent.fnMouseOverScroll(2);\" onmouseout=\"parent.fnMouseOutScroll(2);\"><a>&gt</a></td>"+
  81. "<td valign=top id=tdScroll class=\"clScroll\" onclick=\"parent.fnFastScrollTabs(1);\" onmouseover=\"parent.fnMouseOverScroll(3);\" onmouseout=\"parent.fnMouseOutScroll(3);\"><a>&#187;</a></td>"+
  82. "<td style=\"font:1pt\">&nbsp;<td></tr></table></body></html>";
  83. with (frames['frScroll'].document) {
  84. open("text/html","replace");
  85. write(szHTML);
  86. close();
  87. }
  88. szHTML =
  89. "<html><head>"+
  90. "<style>A:link,A:visited,A:active {text-decoration:none;"+"color:"+c_rgszClr[3]+";}"+
  91. ".clTab {cursor:hand;background:"+c_rgszClr[1]+";font:9pt Arial;padding-left:3px;padding-right:3px;text-align:center;}"+
  92. ".clBorder {background:"+c_rgszClr[2]+";font:1pt;}"+
  93. "</style></head><body onload=\"parent.fnInit();\" onselectstart=\"event.returnValue=false;\" ondragstart=\"event.returnValue=false;\" bgcolor="+c_rgszClr[4]+
  94. " topmargin=0 leftmargin=0><table id=tbTabs cellpadding=0 cellspacing=0>";
  95. var iCellCount=(c_lTabs+1)*2;
  96. var i;
  97. for (i=0;i<iCellCount;i+=2)
  98. szHTML+="<col width=1><col>";
  99. var iRow;
  100. for (iRow=0;iRow<6;iRow++) {
  101. szHTML+="<tr>";
  102. if (iRow==5)
  103. szHTML+="<td colspan="+iCellCount+"></td>";
  104. else {
  105. if (iRow==0) {
  106. for(i=0;i<iCellCount;i++)
  107. szHTML+="<td height=1 class=\"clBorder\"></td>";
  108. } else if (iRow==1) {
  109. for(i=0;i<c_lTabs;i++) {
  110. szHTML+="<td height=1 nowrap class=\"clBorder\">&nbsp;</td>";
  111. szHTML+=
  112. "<td id=tdTab height=1 nowrap class=\"clTab\" onmouseover=\"parent.fnMouseOverTab("+i+");\" onmouseout=\"parent.fnMouseOutTab("+i+");\">"+
  113. "<a href=\""+document.all.item("shLink")[i].href+"\" target=\"frSheet\" id=aTab>&nbsp;"+c_rgszSh[i]+"&nbsp;</a></td>";
  114. }
  115. szHTML+="<td id=tdTab height=1 nowrap class=\"clBorder\"><a id=aTab>&nbsp;</a></td><td width=100%></td>";
  116. } else if (iRow==2) {
  117. for (i=0;i<c_lTabs;i++)
  118. szHTML+="<td height=1></td><td height=1 class=\"clBorder\"></td>";
  119. szHTML+="<td height=1></td><td height=1></td>";
  120. } else if (iRow==3) {
  121. for (i=0;i<iCellCount;i++)
  122. szHTML+="<td height=1></td>";
  123. } else if (iRow==4) {
  124. for (i=0;i<c_lTabs;i++)
  125. szHTML+="<td height=1 width=1></td><td height=1></td>";
  126. szHTML+="<td height=1 width=1></td><td></td>";
  127. }
  128. }
  129. szHTML+="</tr>";
  130. }
  131. szHTML+="</table></body></html>";
  132. with (frames['frTabs'].document) {
  133. open("text/html","replace");
  134. charset=document.charset;
  135. write(szHTML);
  136. close();
  137. }
  138. }
  139. function fnInit()
  140. {
  141. g_rglTabX[0]=0;
  142. var i;
  143. for (i=1;i<=c_lTabs;i++)
  144. with (frames['frTabs'].document.all.tbTabs.rows[1].cells[fnTabToCol(i-1)])
  145. g_rglTabX[i]=offsetLeft+offsetWidth-6;
  146. }
  147. function fnTabToCol(iTab)
  148. {
  149. return 2*iTab+1;
  150. }
  151. function fnNextTab(fDir)
  152. {
  153. var iNextTab=-1;
  154. var i;
  155. with (frames['frTabs'].document.body) {
  156. if (fDir==0) {
  157. if (scrollLeft>0) {
  158. for (i=0;i<c_lTabs&&g_rglTabX[i]<scrollLeft;i++);
  159. if (i<c_lTabs)
  160. iNextTab=i-1;
  161. }
  162. } else {
  163. if (g_rglTabX[c_lTabs]+6>offsetWidth+scrollLeft) {
  164. for (i=0;i<c_lTabs&&g_rglTabX[i]<=scrollLeft;i++);
  165. if (i<c_lTabs)
  166. iNextTab=i;
  167. }
  168. }
  169. }
  170. return iNextTab;
  171. }
  172. function fnScrollTabs(fDir)
  173. {
  174. var iNextTab=fnNextTab(fDir);
  175. if (iNextTab>=0) {
  176. frames['frTabs'].scroll(g_rglTabX[iNextTab],0);
  177. return true;
  178. } else
  179. return false;
  180. }
  181. function fnFastScrollTabs(fDir)
  182. {
  183. if (c_lTabs>16)
  184. frames['frTabs'].scroll(g_rglTabX[fDir?c_lTabs-1:0],0);
  185. else
  186. if (fnScrollTabs(fDir)>0) window.setTimeout("fnFastScrollTabs("+fDir+");",5);
  187. }
  188. function fnSetTabProps(iTab,fActive)
  189. {
  190. var iCol=fnTabToCol(iTab);
  191. var i;
  192. if (iTab>=0) {
  193. with (frames['frTabs'].document.all) {
  194. with (tbTabs) {
  195. for (i=0;i<=4;i++) {
  196. with (rows[i]) {
  197. if (i==0)
  198. cells[iCol].style.background=c_rgszClr[fActive?0:2];
  199. else if (i>0 && i<4) {
  200. if (fActive) {
  201. cells[iCol-1].style.background=c_rgszClr[2];
  202. cells[iCol].style.background=c_rgszClr[0];
  203. cells[iCol+1].style.background=c_rgszClr[2];
  204. } else {
  205. if (i==1) {
  206. cells[iCol-1].style.background=c_rgszClr[2];
  207. cells[iCol].style.background=c_rgszClr[1];
  208. cells[iCol+1].style.background=c_rgszClr[2];
  209. } else {
  210. cells[iCol-1].style.background=c_rgszClr[4];
  211. cells[iCol].style.background=c_rgszClr[(i==2)?2:4];
  212. cells[iCol+1].style.background=c_rgszClr[4];
  213. }
  214. }
  215. } else
  216. cells[iCol].style.background=c_rgszClr[fActive?2:4];
  217. }
  218. }
  219. }
  220. with (aTab[iTab].style) {
  221. cursor=(fActive?"default":"hand");
  222. color=c_rgszClr[3];
  223. }
  224. }
  225. }
  226. }
  227. function fnMouseOverScroll(iCtl)
  228. {
  229. frames['frScroll'].document.all.tdScroll[iCtl].style.color=c_rgszClr[7];
  230. }
  231. function fnMouseOutScroll(iCtl)
  232. {
  233. frames['frScroll'].document.all.tdScroll[iCtl].style.color=c_rgszClr[6];
  234. }
  235. function fnMouseOverTab(iTab)
  236. {
  237. if (iTab!=g_iShCur) {
  238. var iCol=fnTabToCol(iTab);
  239. with (frames['frTabs'].document.all) {
  240. tdTab[iTab].style.background=c_rgszClr[5];
  241. }
  242. }
  243. }
  244. function fnMouseOutTab(iTab)
  245. {
  246. if (iTab>=0) {
  247. var elFrom=frames['frTabs'].event.srcElement;
  248. var elTo=frames['frTabs'].event.toElement;
  249. if ((!elTo) ||
  250. (elFrom.tagName==elTo.tagName) ||
  251. (elTo.tagName=="A" && elTo.parentElement!=elFrom) ||
  252. (elFrom.tagName=="A" && elFrom.parentElement!=elTo)) {
  253. if (iTab!=g_iShCur) {
  254. with (frames['frTabs'].document.all) {
  255. tdTab[iTab].style.background=c_rgszClr[1];
  256. }
  257. }
  258. }
  259. }
  260. }
  261. function fnSetActiveSheet(iSh)
  262. {
  263. if (iSh!=g_iShCur) {
  264. fnSetTabProps(g_iShCur,false);
  265. fnSetTabProps(iSh,true);
  266. g_iShCur=iSh;
  267. }
  268. }
  269. window.g_iIEVer=fnGetIEVer();
  270. if (window.g_iIEVer>=4)
  271. fnBuildFrameset();
  272. //-->
  273. </script>
  274. <![endif]><!--[if gte mso 9]><xml>
  275. <x:ExcelWorkbook>
  276. <x:ExcelWorksheets>
  277. <x:ExcelWorksheet>
  278. <x:Name>Runtimes</x:Name>
  279. <x:WorksheetSource HRef="windows_string_sort_files/chart001.htm"/>
  280. <x:WorksheetType>Chart</x:WorksheetType>
  281. </x:ExcelWorksheet>
  282. <x:ExcelWorksheet>
  283. <x:Name>Runtime Data</x:Name>
  284. <x:WorksheetSource HRef="windows_string_sort_files/sheet001.htm"/>
  285. </x:ExcelWorksheet>
  286. </x:ExcelWorksheets>
  287. <x:Stylesheet HRef="windows_string_sort_files/stylesheet.css"/>
  288. <x:WindowHeight>8700</x:WindowHeight>
  289. <x:WindowWidth>10395</x:WindowWidth>
  290. <x:WindowTopX>360</x:WindowTopX>
  291. <x:WindowTopY>135</x:WindowTopY>
  292. <x:ProtectStructure>False</x:ProtectStructure>
  293. <x:ProtectWindows>False</x:ProtectWindows>
  294. </x:ExcelWorkbook>
  295. </xml><![endif]-->
  296. </head>
  297. <frameset rows="*,39" border=0 width=0 frameborder=no framespacing=0>
  298. <frame src="windows_string_sort_files/chart001.htm" name="frSheet">
  299. <frame src="windows_string_sort_files/tabstrip.htm" name="frTabs" marginwidth=0 marginheight=0>
  300. <noframes>
  301. <body>
  302. <p>This page uses frames, but your browser doesn't support them.</p>
  303. </body>
  304. </noframes>
  305. </frameset>
  306. </html>