[新着] Webテンプレートを仮オープンしました
<script type="text/javascript">
<!--
window.onload = function()
{
ok();
}
function ok()
{
var t = new Array("文字 2", "文字 3", "文字 4", "文字 5");
if(typeof this.x == "undefined")
this.x = 0;
if( (this.x + 1) < t.length) {
var textB = document.getElementById("b")
textB.value = t[this.x];
textB.style.fontSize = (this.x + 7) + "px";
}
this.x++;
}
// -->
</script>
<form id="a">
<input type="button" onclick="ok();" value="実行" style="color:#008000; background:#ffa0a0; width:50px;">
<input type="text" id="b" name="b" value="文字 1" style="font-size:2px; color:#00ff00; background-color:#404040;">
</form><script type="text/javascript">
<!--
window.onload = function()
{
ok();
}
function ok()
{
var t = new Array(new Text("文字 2", 7), new Text("文字 3", 12), new Text("文字 4", 17), new Text("文字 5", 22));
if(typeof this.x == "undefined")
this.x = 0;
if( (this.x + 1) <= t.length) {
var textB = document.getElementById("b");
textB.value = t[this.x].text;
textB.style.fontSize = t[this.x].size;
}
this.x++;
}
function Text(text, size) {
this.text = text;
this.size = size + "px";
}
// -->
</script>
<form id="a">
<input type="button" onclick="ok();" value="実行" style="color:#008000; background:#ffa0a0; width:50px;">
<input type="text" id="b" name="b" value="文字 1" style="font-size:2px; color:#00ff00; background-color:#404040;">
</form>