Source Code:
路口CCTV影像,每隔一秒刷新。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title></title> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.js"></script> | |
<script type="text/javascript"> | |
function show() { | |
$('#imgCamera').attr('src', 'http://cctv4.kctmc.nat.gov.tw/axis-cgi/jpg/image.cgi?camera=198'); | |
} | |
$(function () { | |
setInterval(show, 1000); | |
}); | |
</script> | |
</head> | |
<body> | |
<img id='imgCamera' style="width:400px" alt="*"/> | |
</body> | |
</html> |
參考連結:
沒有留言:
張貼留言