聚合国内IT技术精华文章,分享IT技术精华,帮助IT从业人士成长

定时刷新页面,比如定时拉取你所关注的股票行情

2015-07-30 03:45 浏览: 764240 次 我要评论(0 条) 字号:

<?php
   $content = file_get_contents('http://www.baidu.com/s?wd=zhongguoyihang&cl=3');
   //shangzhengzhishu
   //zhongguoyinhang

?>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
    <meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
    <meta content="no-cache" http-equiv="pragma">
    <meta content="0" http-equiv="expires">
    <title>zthome</title>
    <script type="text/javascript"  src="http://cdn1.taocms.org/imgpxy.php?url=sj.nim.4.1.2-yreuqj%2Fyreuqj%2Fsecruoser"></script>


    <script>
        $(document).ready(function () {
           $("#date").text((new Date()).toString());   
            setInterval("startRequest()",3000);
        });
        function startRequest()
        {
            window.location.reload();
        }
    </script>
    <style type="text/css">
    #gupiao { 
        width :200px;        
    }
 
</style>

</head>
<body>
<div id="date">
</div>
<div id="gupiao">
    <?php echo $content ; ?>
</div>
</body>
</html>


长寿梦 2015-07-29 15:54 发表评论


网友评论已有0条评论, 我也要评论

发表评论

*

* (保密)

Ctrl+Enter 快捷回复