123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <style>
- body {
- margin: 0;
- padding: 0;
- background-color: #5394cc;
- width: 100%;
- font-size: 16px;
- }
- ul {
- list-style-type: none;
- margin: 0;
- padding: 0;
- width: 100%;
- background-color: #5394cc;
- }
- li a {
- display: block;
- color: white;
- padding: 8px 16px;
- text-decoration: none;
- }
- li a.active {
- background-color:rgb(39, 148, 190);
- color: white;
- }
- li a:hover:not(.active) {
- background-color: rgb(118, 153, 228);
- color: white;
- }
- .active {
- background-color: rgb(76, 109, 201);
- color: white;
- }
- .now{ color:#fc9d00;}
- </style>
- </head>
- <body valign="top">
- <ul>
- <li><a href="main.html" target="main">主页</a></li>
- <li><a href="station.html" target="main">站点信息</a></li>
- <li><a href="record.html" target="main">加油数据</a></li>
- <li><a href="envir.html" target="main">环境数据</a></li>
- <li><a href="warning.html" target="main">报警数据</a></li>
- <li><a href="config.html" target="main">配置数据</a></li>
- <li><a href="offline.html" target="main">离线记录</a></li>
- <!--<li><a href="error.html" target="main">故障数据</a></li>-->
- <li><a href="summary.html" target="main">数据统计</a></li>
- </ul>
- <script type="text/javascript">
- var oLis=document.getElementsByTagName("li");
- var i,j;
- var length=oLis.length;
- for(i=0;i<length;i++){
- oLis[i].onclick=function(){
- for(j=0;j<length;j++){
- oLis[j].className="";
- }
- this.className+="active";
- }
- }
- </script>
- <script>
- function onclick() {
- //var selectionObj = window.getSelection();
- //var selectedText = selectionObj.toString();
- alert(selectedText);
- }
- </script>
- <script>
- function onclick2() {
- var selectionObj = window.getSelection();
- var selectedText = selectionObj.toString();
- alert(selectedText)
- //window.location.target="main";
- //window.location.href='record.html';
- window.open("record.html", "main")
- // window.location.
- }
- </script>
- </body>
- </html>
|