天空是藍色的

          做好軟件為中國 #gcc -c helloworld.c -o helloworld.o //編譯目標文件 #gcc helloworld.o -o helloworld //編譯成可執(zhí)行exe #helloworld //運行exe
          數(shù)據(jù)加載中……
          自動刷新頁面取客戶端時間并給URL參數(shù)賦值

           

           1<html>
           2<head>
           3<title>自動刷新頁面取客戶端時間</title>
           4</head>
           5<body>
           6<href="test.html" id="selfLink"/>
           7<script lang="javascript">
           8
           9function refresh() {
          10var date = new Date();
          11Hour = date.getHours();
          12Minute = date.getMinutes();
          13Second = date.getSeconds();
          14Year = date.getYear();
          15Month = date.getMonth()+1;
          16Day = date.getDate();
          17var dateFormat = Year+"-"+Month+"-"+Day+" "+Hour+":"+Minute+":"+Second;
          18window.open(document.getElementById('selfLink').href + "?"+dateFormat,"_self");    
          19}

          20
          21setTimeout("refresh()"5000);
          22
          </script>
          23</body>
          24</html>

          posted on 2005-11-16 15:50 bluesky 閱讀(855) 評論(0)  編輯  收藏 所屬分類: HTML/CSS

          主站蜘蛛池模板: 新平| 广饶县| 永昌县| 富阳市| 怀来县| 重庆市| 凤城市| 华容县| 米林县| 自贡市| 怀来县| 抚远县| 襄樊市| 兴义市| 祁连县| 石嘴山市| 太保市| 吴桥县| 平度市| 通河县| 都安| 定边县| 衡南县| 安徽省| 柯坪县| 新蔡县| 涞水县| 桂平市| 乌兰察布市| 柘城县| 精河县| 邹平县| 长武县| 北安市| 江永县| 崇左市| 江川县| 柯坪县| 孟村| 都安| 隆林|