赣州市洪水风险预警系统二维版本
xiebin
2023-03-02 b39483c96ae572121d3c619c0b9d37634e682cc4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html>
 
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset = utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=10" />
        <title>三维场景工具</title>
        <link rel="stylesheet" href="../Style/layout.css" type="text/css" />
        <script type="text/javascript" src="../Scripts/JS/jquery-1.8.3.js"></script>
        <style>
            html, body{background-color:transparent !important; filter:alpha(opacity = 10);}
        </style>
    </head>
 
    <body id="lefthidden"class="bac" bgcolor="transparent">
        <!--<div ></div>-->
        <script>
//                var leftDiv = $("#Left_content", window.parent.document);
//                if(leftDiv.is(":hidden")) {
//                    leftDiv.show();
//                    $("#open").attr("title", "收起");
//                    $("#openimg").attr("src", "../Images/Left/show_hidden_3d1.png");
//                    $("#sceneControlDiv", window.parent.document).css({
//                        "left": "281px"
//                    });
//                } else {
//                    leftDiv.hide();
//                    $("#open").attr("title", "展开");
//                    $("#openimg").attr("src", "../Images/Left/show_hidden_3d2.png");
//                    $("#sceneControlDiv", window.parent.document).css({
//                        "left": "0px"
//                    });
//                }
 
                var falg = 'true';
                $('#lefthidden').click(function() {
                    
                    if(falg == 'true') {
                        $('#mainLeft', window.parent.document).animate({width:"0px"});
                        $(this).addClass('bac-b').removeClass('bac');
                        
                        $('#mainRight', window.parent.document).animate({
                            left: "0px"
                        });
                        $('.siderbutton-normal', window.parent.document).animate({
                            left: "0px"
                        });
                        $('#sceneControlDiv', window.parent.document).animate({
                            left: "2px"
                        });
                        
//                        $('#mainRight', window.parent.document).css({
//                            'left': '0px'
//                        });
//                        $('.siderbutton-normal', window.parent.document).css({
//                            'left': '0px'
//                        });
//                        $('#sceneControlDiv', window.parent.document).css({
//                            'left': '2px'
//                        });
                        falg = 'false';
                    } else if(falg == 'false') {
                        $('#mainLeft', window.parent.document).animate({width:"315px"});
                        $(this).addClass('bac').removeClass('bac-b');
                        
                        $('#mainRight', window.parent.document).animate({
                            left: "315px"
                        });
                        $('.siderbutton-normal', window.parent.document).animate({
                            left: "315px"
                        });
                        $('#sceneControlDiv', window.parent.document).animate({
                            left: "0px"
                        });
                        
//                        $('#mainRight', window.parent.document).css({
//                            'left': '315px'
//                        });
//                        $('.siderbutton-normal', window.parent.document).css({
//                            'left': '315px'
//                        });
//                        $('#sceneControlDiv', window.parent.document).css({
//                            'left': '0px'
//                        });
                        falg = 'true';
                    }
                });
        </script>
    </body>
 
</html>