chat.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <html dir="ltr" lang="zh">
  2. <head>
  3. <META http-equiv="Content-Type" content="text/html; charset=utf-8">
  4. <style type="text/css">
  5. iframe {
  6. width: 370px;
  7. height: 170px;
  8. }
  9. html {
  10. overflow: visible;
  11. }
  12. body {
  13. border: 0px solid;
  14. margin: 3px;
  15. padding-top: 14px;
  16. font-Size: 9pt;
  17. font-Family: 宋体;
  18. background-attachment: fixed;
  19. background-position: left top;
  20. background-repeat: no-repeat;
  21. background-size: 100% 100%;
  22. word-break: break-all;
  23. }
  24. a{
  25. text-decoration:none;
  26. }
  27. .btn-load {
  28. position: absolute;
  29. width: 100%;
  30. font-size: 12px;
  31. color: #0000ff;
  32. text-align: center;
  33. display: block-inline;
  34. top: 0px;
  35. left: 0px;
  36. margin: 3px 0;
  37. }
  38. </style>
  39. <script type="text/javascript">
  40. function AutoResizeImage(maxWidth, maxHeight, objImg) {
  41. var img = new Image();
  42. img.src = objImg.src;
  43. var hRatio;
  44. var wRatio;
  45. var Ratio = 1;
  46. var w = img.width;
  47. var h = img.height;
  48. wRatio = maxWidth / w;
  49. hRatio = maxHeight / h;
  50. if (maxWidth == 0 && maxHeight == 0) {
  51. Ratio = 1;
  52. } else if (maxWidth == 0) {
  53. // if (hRatio<1) Ratio=h Ratio; }else if (maxHeight==0){ if (wRatio<1) Ratio=w
  54. Ratio;
  55. } else if (wRatio < 1 || hRatio < 1) {
  56. Ratio = (wRatio <= hRatio ? wRatio : hRatio);
  57. }
  58. if (Ratio < 1) {
  59. w = w * Ratio;
  60. h = h * Ratio;
  61. }
  62. objImg.style.height = h + 'px';
  63. objImg.style.width = w + 'px';
  64. }
  65. function openInIE(objImg) {
  66. window.location = 'about:blankFile://_' + objImg.src.replace("file:///", "");
  67. // oShell.ShellExecute ( "IEXPLORE", objImg.src, "", "open", "1");
  68. }
  69. </script>
  70. </head>
  71. <body link="#0000FF" vlink="#0000FF" alink="#0000FF" hlink="#0000FF" bgcolor="#FFFFFF" oncontextmenu="location.href='PopMenu';return false;">
  72. <a class="btn-load" id="btnLoad" href="about:blankLoadHistroyMessage">查看更多消息</a>
  73. </body>
  74. </html>