Skip to content

Instantly share code, notes, and snippets.

@rashita
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rashita/503d7f21818d31c9d858 to your computer and use it in GitHub Desktop.
Save rashita/503d7f21818d31c9d858 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>ブレスト用ページ</title>
<script type="text/javascript"><!--
var timer1;
function tbox1()
{
var str1;
var str2;
str1 = document.getElementById("tBox").value;
str2 = "http://webcatplus.nii.ac.jp/index.html?type=assoc&text=" + str1;
document.getElementById("dFrame").src = str2
}
function newURL()
{
document.getElementById("cFrame").src = "http://rashita.tumblr.com/random";
}
function startfnc()
{
//関数hyoji()を1000ミリ秒間隔で呼び出す
timer1 = setInterval("newURL()",5500);
//ボタンを押せなくする
document.getElementById("goslide").disabled = true;
document.getElementById("stopslide").disabled = false;
}
function tmrOff()
{
clearInterval(timer1);
document.getElementById("goslide").disabled = false;
document.getElementById("stopslide").disabled = true;
}
// -->
</script>
</head>
<body>
<form name="insp">
<input type="button" value="カードのスライド開始" id="goslide" name="go" onClick="startfnc()">
<input type="button" value="カードのスライド停止" id="stopslide" onClick="tmrOff()" disabled >
</form>
<iframe src="http://rashita.tumblr.com/random" id="cFrame" WIDTH="1000" HEIGHT="500" SCROLLING="YES" ></iframe>
<br>
<form name="js">
キーワード:<input type="text" id="tBox" name="txtbox" value=""><br>
<input type="button" value="連想" onclick="tbox1()"><br>
</form>
<iframe src="http://webcatplus.nii.ac.jp/index.html?type=assoc&text=倉下忠憲" id="dFrame" WIDTH="1000" HEIGHT="1000" SCROLLING="YES" ></iframe>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment