Skip to content

Commit 13aa7b5

Browse files
authored
Update hitNJLZ.html
1 parent 64326b0 commit 13aa7b5

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

test/hitNJLZ.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@
2323
</script-->
2424
</head>
2525
<body>
26-
<select id="link_select" onchange="change_link">
26+
<select id="link_select" style="width:60%;">
2727
<option>http://www.njlz.net/X_USER/X_GetLzm.asp?t=2333333333333</option>
2828
</select>选择列表<br />
29-
<input type="text" id="link_input" style="width:50%;">向此链接请求</input><br />
30-
<input type="text" id="numinput" style="width:100px;" value="100">毫秒刷新</input><br />
29+
<input type="text" id="link_input" style="width:60%;"
30+
value="http://www.njlz.net/X_Views_Article.asp?articleid=3786&sortid=36">向此链接请求</input><br />
31+
<input type="text" id="numinput" style="width:60%;" value="100">毫秒刷新</input><br />
3132
<input type="button" id="start" value="开始"></input>
3233
<input type="button" id="end" value="停止"></input><br />
3334
<iframe id="njlzframe"
@@ -41,7 +42,8 @@
4142
</body>
4243
<script>
4344
function loadf(){
44-
$("#njlzframe").attr('src', $("#njlzframe").attr('src'));
45+
//$("#njlzframe").attr('src', $("#njlzframe").attr('src'));
46+
$("#njlzframe").attr('src', $("#link_input").val());
4547
}
4648
$(document).ready(function(){
4749
var t1;
@@ -56,7 +58,11 @@
5658
t1 = window.clearInterval(t1);
5759
//$("#njlzframe").attr('src', $("#njlzframe").attr('src'));
5860
});
59-
61+
$("#link_select").change(function()
62+
{
63+
//$("#link_input").val($("#link_select option:selected").text());
64+
$("#link_input").val($("#link_select").val());
65+
});
6066
});
6167
</script>
6268
</html>

0 commit comments

Comments
 (0)