网址测速JS

时间:2022-12-16 19:11:56

/*.route_nav li a:hover{background: #3c7f84 url(title.png) no-repeat;border-color:#84a3a5;}*/ .route_nav li a:hover{background:#3c7f84;border-color:#84a3a5; color:#FFF;} .route_nav li a.line1:hover{background-position: -263px 7px;} .route_nav li a.line2:hover{background-position: -270px -118px;} .route_nav li a.line3:hover{background-position: -263px -58px;} .route_nav li a.line4:hover{background-position: -496px 7px;} .route_nav li a.line5:hover{background-position: -503px -56px;} .route_nav li a.line6:hover{background-position: -496px -116px;} .nav_box dl{height:58px;line-height:58px;overflow:hidden;} .nav_box{position: fixed;z-index: 10;left: 0;width:100%;padding: 15px 0;background:rgba(0,0,0,0.4);filter:progid:DXImageTransform.Microsoft.gradient( GradientType = 0,startColorstr = '#99000000',endColorstr = '#99000000')\9;} .universe{width: 760px;margin: 0 auto;} .universe span{ display:block; width:440px;color: #999;line-height: 21px;margin-top: 5px;margin-right: 0;margin-bottom: 0;margin-left: 300px;} .universe a{display:block;width: 128px;height: 45px;text-indent: -9999px;background: url(download.png) no-repeat bottom right;}

//

function test() { var span, d = document, li, a, i, lis = d.getElementById('ttcesu').getElementsByTagName('li'); for (i = 0; li = lis[i++]; ) { a = li.getElementsByTagName('a')[0]; if (!a) { continue; } span = d.createElement('span'); span.ctime=new Date(); span.innerHTML = '测速中...网址测速JS'; li.appendChild(span); } }; function testresult(img) { var span = img.parentNode; var n = 'em'; if (!testresult.isrun) { n = 'b'; testresult.isrun = true; } span.innerHTML = '<' + n + '>' + ((new Date() - span.ctime) / 1000).toFixed(2) + '秒'; }; var ran = Math.random();