| | |
| | | } |
| | | </style> |
| | | <script> |
| | | var groupName = "多期数据"; // 多期数据 |
| | | var groupName = "16m数据"; // 16m数据,多期数据 |
| | | |
| | | function getQueryString(name) { |
| | | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); |
| | |
| | | } |
| | | |
| | | window.onload = function () { |
| | | initLayers(); |
| | | } |
| | | |
| | | function initLayers() { |
| | | var item = SGWorld.ProjectTree.FindItem(groupName); |
| | | if (!item) return; |
| | | |
| | | var names = []; |
| | | var id = SGWorld.ProjectTree.GetNextItem(item, 11); // 11-CHILD |
| | | while (id) { |
| | | var name = SGWorld.ProjectTree.GetItemName(id); |
| | | names.push(name); |
| | | |
| | | id = SGWorld.ProjectTree.GetNextItem(id, 13); // 13-NEXT |
| | | } |
| | | |
| | | var select = document.getElementById("select"); |
| | | for (var i in names) { |
| | | var op = document.createElement("option"); |
| | | op.text = names[i]; |
| | | if (0 == i) op.selected = true; |
| | | select.add(op); |
| | | } |
| | | select.onchange = selectChanged; |
| | | |
| | | setImageLayer(); |
| | | } |
| | | |
| | |
| | | </script> |
| | | </head> |
| | | <body> |
| | | <select id="select" style="width: 120px; text-align: center;" onchange="selectChanged(this);"> |
| | | <option selected="selected">2024年</option> |
| | | <option>2023年</option> |
| | | <option>2019年</option> |
| | | <option>2015年</option> |
| | | <option>2010年</option> |
| | | </select><object id="SGWorld" classid="CLSID:3a4f9199-65a8-11d5-85c1-0001023952c1"></object> |
| | | <select id="select" style="width: 120px; text-align: center;"></select><object id="SGWorld" classid="CLSID:3a4f9199-65a8-11d5-85c1-0001023952c1"></object> |
| | | </body> |
| | | </html> |