File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 23
23
</script-->
24
24
</ head >
25
25
< body >
26
- < select id ="link_select " onchange =" change_link ">
26
+ < select id ="link_select " style =" width:60%; ">
27
27
< option > http://www.njlz.net/X_USER/X_GetLzm.asp?t=2333333333333</ option >
28
28
</ 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 />
31
32
< input type ="button " id ="start " value ="开始 "> </ input >
32
33
< input type ="button " id ="end " value ="停止 "> </ input > < br />
33
34
< iframe id ="njlzframe "
41
42
</ body >
42
43
< script >
43
44
function loadf ( ) {
44
- $ ( "#njlzframe" ) . attr ( 'src' , $ ( "#njlzframe" ) . attr ( 'src' ) ) ;
45
+ //$("#njlzframe").attr('src', $("#njlzframe").attr('src'));
46
+ $ ( "#njlzframe" ) . attr ( 'src' , $ ( "#link_input" ) . val ( ) ) ;
45
47
}
46
48
$ ( document ) . ready ( function ( ) {
47
49
var t1 ;
56
58
t1 = window . clearInterval ( t1 ) ;
57
59
//$("#njlzframe").attr('src', $("#njlzframe").attr('src'));
58
60
} ) ;
59
-
61
+ $ ( "#link_select" ) . change ( function ( )
62
+ {
63
+ //$("#link_input").val($("#link_select option:selected").text());
64
+ $ ( "#link_input" ) . val ( $ ( "#link_select" ) . val ( ) ) ;
65
+ } ) ;
60
66
} ) ;
61
67
</ script >
62
68
</ html >
You can’t perform that action at this time.
0 commit comments