d450caf5f037fe8ceb553a0aba17b02cab88ec15.svn-base 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Alert</title>
  5. <meta name="keywords" content="keyword1,keyword2,keyword3">
  6. <meta name="description" content="测试置顶弹窗页面">
  7. <meta name="content-type" content="text/html; charset=UTF-8">
  8. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
  9. <script type="text/javascript" src="/nwyj/scripts/cockpit/common/cockpit_common.js"></script>
  10. <link href="/nwyj/css/cockpit/commom/cockpit_common.css" rel="stylesheet" type="text/css"/>
  11. <style type="text/css">
  12. body,html{
  13. width: 100%;
  14. height: 100%;
  15. background-color:#192735;
  16. color: #ffffff;
  17. };
  18. </style>
  19. <body>
  20. <div id="main">
  21. aaaaaaaa
  22. </div>
  23. </body>
  24. <script type="text/javascript">
  25. $(function(){
  26. for(var i=0;i<8;i++){
  27. var height=100;
  28. var width=400;
  29. var r=100
  30. console.log("x="+(100+r*Math.sin(16*Math.PI/360)*i)+";y="+(400+r*Math.cos(16*Math.PI/360)*i))
  31. }
  32. /*
  33. *强制置顶弹窗测试demo
  34. */
  35. $("#main").on("click",function(){
  36. //创建对象
  37. var alert1=new Alert({ok:fn1,cancle:fn2},
  38. {text:"请问输入视图名称:",
  39. input:"true",
  40. width:400,
  41. height:200});
  42. //创建节点
  43. alert1.create("");
  44. });
  45. //点击确定事件
  46. function fn1(param){
  47. alert("点击确定按钮弹出窗口传递的参数:"+param);
  48. }
  49. //点击取消事件
  50. function fn2(param){
  51. alert("点击取消按钮弹出窗口传递的参数:"+param);
  52. }
  53. });
  54. </script>
  55. </head>