Chat.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. body {
  10. overflow-y: scroll;
  11. padding-top: 14px
  12. }
  13. .btn-load {
  14. position: absolute;
  15. width: 100%;
  16. font-size: 12px;
  17. text-align: center;
  18. display: block-inline;
  19. top: 0px;
  20. left: 0px;
  21. margin: 3px 0;
  22. text-decoration: none;
  23. color: #999;
  24. }
  25. </style>
  26. <script type="text/javascript">
  27. function AutoResizeImage(maxWidth, maxHeight, objImg) {
  28. var img = new Image();
  29. img.src = objImg.src;
  30. var hRatio;
  31. var wRatio;
  32. var Ratio = 1;
  33. var w = img.width;
  34. var h = img.height;
  35. wRatio = maxWidth / w;
  36. hRatio = maxHeight / h;
  37. if (maxWidth == 0 && maxHeight == 0) {
  38. Ratio = 1;
  39. } else if (maxWidth == 0) {
  40. // if (hRatio<1) Ratio=h Ratio; }else if (maxHeight==0){ if (wRatio<1) Ratio=w
  41. Ratio;
  42. } else if (wRatio < 1 || hRatio < 1) {
  43. Ratio = (wRatio <= hRatio ? wRatio : hRatio);
  44. }
  45. if (Ratio < 1) {
  46. w = w * Ratio;
  47. h = h * Ratio;
  48. }
  49. objImg.style.height = h + 'px';
  50. objImg.style.width = w + 'px';
  51. objImg.style.cursor = 'url("..//Images//Zoom.ico")';
  52. }
  53. function openInIE(objImg) {
  54. window.location = 'about:blankFile://_' + objImg.src.replace("file:///", "");
  55. // oShell.ShellExecute ( "IEXPLORE", objImg.src, "", "open", "1");
  56. }
  57. </script>
  58. </head>
  59. <body link="#0000FF" vlink="#0000FF" alink="#0000FF" hlink="#0000FF" bgcolor="#fdfdfd" oncontextmenu="location.href='PopMenu';return false;">
  60. <a class="btn-load" id="btnLoad" href="about:blankLoadHistroyMessage">加载更多消息</a>
  61. </body>
  62. </html>