5c3a09629b21bc765b28437fa7331149b7460e08.svn-base 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. function removeDrawWin(){
  2. $("#typhoon_aler").remove();
  3. $("#gis_mask").remove();
  4. };
  5. /**
  6. * 关闭模拟历史台风窗口
  7. */
  8. function removeHistoryTyphoonWin(){
  9. $("#history_typhoon_aler").remove();
  10. };
  11. /**
  12. * 最小化历史模拟台风窗口
  13. */
  14. function historyTyphoonMin(){
  15. // $("#history_typhoon_aler").height(30);
  16. $("#history_typhoon_aler").animate({
  17. height: "30px",
  18. }, 1000 );
  19. };
  20. /**
  21. * 还原历史模拟台风窗口
  22. */
  23. function historyTyphoonRes(){
  24. // $("#history_typhoon_aler").height(30);
  25. $("#history_typhoon_aler").animate({
  26. height: "330px",
  27. }, 1000 );
  28. };
  29. AlertTyphoonIframe = function(){
  30. var _this = this ;
  31. /**
  32. * 弹出信息框
  33. * @param w:弹框宽度px
  34. * @param h:弹框高度px
  35. * @param b:距离底部距离px
  36. * @param r:距离右侧距离px
  37. * @param src:页面地址
  38. */
  39. this.createWin = function(w,h,b,r,src){
  40. var iframe = document.createElement("iframe");
  41. iframe.src = src;
  42. iframe.style.width = w+"px";
  43. iframe.style.height = h+"px";
  44. iframe.style.position = "fixed";
  45. iframe.style.bottom = b+"px";
  46. iframe.style.right = r+"px";
  47. iframe.style.zIndex = 9999;
  48. iframe.id = "typhoon_aler";
  49. iframe.scrolling = "no";
  50. iframe.style.border="none";
  51. iframe.frameBorder = 0;
  52. $("body").append(iframe);
  53. };
  54. /**
  55. * 弹出信息框
  56. * @param w:弹框宽度px
  57. * @param h:弹框高度px
  58. * @param b:距离底部距离px
  59. * @param r:距离右侧距离px
  60. * @param src:页面地址
  61. */
  62. this.createCharWin = function(w,h,b,r,src,id){
  63. var iframe = document.createElement("iframe");
  64. iframe.src = src;
  65. iframe.style.width = w+"px";
  66. iframe.style.height = h+"px";
  67. iframe.style.position = "fixed";
  68. iframe.style.bottom = b+"px";
  69. iframe.style.right = r+"px";
  70. iframe.style.zIndex = 9999;
  71. iframe.id = id;
  72. iframe.scrolling = "no";
  73. iframe.style.border="none";
  74. iframe.frameBorder = 0;
  75. $("body").append(iframe);
  76. };
  77. /**
  78. * 弹出历史台风信息框
  79. * @param w:弹框宽度px
  80. * @param h:弹框高度px
  81. * @param b:距离底部距离px
  82. * @param r:距离右侧距离px
  83. * @param src:页面地址
  84. */
  85. this.createTyphWin = function(w,h,b,l,src){
  86. var iframe = document.createElement("iframe");
  87. iframe.src = src;
  88. iframe.style.width = w+"px";
  89. iframe.style.height = h+"px";
  90. iframe.style.position = "fixed";
  91. iframe.style.bottom = b+"px";
  92. iframe.style.left = l+"px";
  93. iframe.style.zIndex = 9999;
  94. iframe.id = "history_typhoon_aler";
  95. iframe.scrolling = "no";
  96. iframe.style.border="none";
  97. iframe.frameBorder = 0;
  98. $("body").append(iframe);
  99. };
  100. };