アプリ版:「スタンプのみでお礼する」機能のリリースについて

htmlファイル上で簡易に設定・指定する方法はありますか?各サーバー(複数)に設置したMRTGの状況を確認し、対象サーバーの状態を自動巡回・閲覧したいんですが・・。

A 回答 (1件)

こんな意味のこと? 



例として20秒にしてある。(例なので要領のみ)
(nextボタンを押すと時間にならなくても次に移動)

<html>
<head>
<script type="text/javascript">
var count = 0, time = 20, tID;
var uri = [
"http://panasonic.co.jp/index3.html",
"http://kadenfan.hitachi.co.jp/",
"http://www.sharp.co.jp/products/index.html",
"http://www.mitsubishielectric.co.jp/"
];

window.onload = function(){next();}
function next(){
if (tID) clearTimeout(tID);
document.getElementById('frame1').src = uri[count];
count = ++count % uri.length;
tID = setTimeout(next,time*1000);
}
</script>
</head>

<body style="margin:0; padding:0;">
<input type="button" value="next" onclick="next();">
<iframe id="frame1" src="" style="width:100%; height:100%">
</frame>
</body>
</html>
    • good
    • 0
この回答へのお礼

┌○゛ありがとうございました。
早速試させて頂きました!

お礼日時:2009/06/09 13:03

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!