Skip to content

Commit af1be90

Browse files
authored
Create hitNJLZ.html
1 parent 1cd8ac9 commit af1be90

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

test/hitNJLZ.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!doctype>
2+
<html>
3+
<head>
4+
<script src="../cdn/jquery.js"></script>
5+
<script>
6+
$(document).ready(function(){
7+
var t1;
8+
function loadf(){
9+
$("#njlzframe").attr('src', $('#iframe').attr('src'));
10+
}
11+
$("#start").click(function(){
12+
t1 = $("#njlzframe").setInterval(10,loadf());
13+
});
14+
$("#end").click(function(){
15+
$("#njlzframe").removeInterval(t1);
16+
});
17+
18+
});
19+
</script>
20+
</head>
21+
<body>
22+
<button id="start" value="开始"><button>
23+
<button id="end" value="停止"><button>
24+
<iframe id="njlzframe"
25+
src ="http://www.njlz.net/X_Views_Article.asp?articleid=3786&sortid=36"
26+
align="middle"
27+
frameborder="1"
28+
scrolling="auto"
29+
width="90%" height="90%"
30+
style="margin:90% 90%;"
31+
seamless
32+
></iframe>
33+
</body>
34+
</html>

0 commit comments

Comments
 (0)