123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>Alert</title>
- <meta name="keywords" content="keyword1,keyword2,keyword3">
- <meta name="description" content="测试置顶弹窗页面">
- <meta name="content-type" content="text/html; charset=UTF-8">
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/cockpit/common/cockpit_common.js"></script>
- <link href="/nwyj/css/cockpit/commom/cockpit_common.css" rel="stylesheet" type="text/css"/>
-
-
- <style type="text/css">
- body,html{
- width: 100%;
- height: 100%;
- background-color:#192735;
- color: #ffffff;
- };
- </style>
- <body>
- <div id="main">
- aaaaaaaa
- </div>
- </body>
- <script type="text/javascript">
- $(function(){
- for(var i=0;i<8;i++){
- var height=100;
- var width=400;
- var r=100
- console.log("x="+(100+r*Math.sin(16*Math.PI/360)*i)+";y="+(400+r*Math.cos(16*Math.PI/360)*i))
-
- }
- /*
- *强制置顶弹窗测试demo
- */
- $("#main").on("click",function(){
- //创建对象
- var alert1=new Alert({ok:fn1,cancle:fn2},
- {text:"请问输入视图名称:",
- input:"true",
- width:400,
- height:200});
- //创建节点
- alert1.create("");
-
- });
- //点击确定事件
- function fn1(param){
- alert("点击确定按钮弹出窗口传递的参数:"+param);
- }
- //点击取消事件
- function fn2(param){
- alert("点击取消按钮弹出窗口传递的参数:"+param);
- }
- });
- </script>
- </head>
-
|