プロが教えるわが家の防犯対策術!

<html>
<head>
<title>サンプルプログラムI</title>
<STYLE TYPE="text/css">
<!--
Body{
scrollber-3dlight-color:#000000;
scrollber-arrow-color:#000000;
scrollber-darkshadow-color:#ffffff;
scrollber-face-color:#ea9e00;
scrollber-highlight-color:#ffffff;
scrollber-shadow-color:#000000;
scrollber-track-color:#ffffff;
}-->
</STYLE>
</head>
<body>
<font size="5"><font color="#ff0000"><marquee scrollamount="30" truespeed direction="down" height=80" loop="10000000000000000000" onmouseover=this.stop() onmouseout=this.start() width="20">
☆<br>
★<br>
♠<br>
♣<br>
♥<br>
♦<br>
</font></font color></marquee>
<input type="button" value="回す"onClick="chuusenn()"><br>
<input type="button" value="リセット" onClick="init()"><br>
<hr size="10">
<marquee behavior="alternate" direction="up" height="50"><marquee direction="right"><strong><em>
↑の原理を利用してスロット作りたいなぁ。。。</strong></em>
</marquee></marquee>
<hr size="10">
<marquee behavior="alternate" direction="up" height="50">
まぁ、今回はこの程度で終わりです。
</marquee>
<marquee Bgcolor="#7f7f7f"><marquee behavior="alternate">
サンプルプログラムIIをお楽しみに!(次回いつになるか知んねぇケド
</marquee>
</body>
</html>


このプログラムはスロット形式なのですが、横に3つ記号が回るようにしようとしたら、どうしても縦になってしまってうまくいきません。どこにどういうタグを入れたらできますか?
あと、「ストップ」というボタンを付けたいのですが・・・

A 回答 (2件)

正確な要求は読み取れませんが、こんな感じでしょうか?



<html>
<head>
<title>サンプルプログラムI</title>
<STYLE TYPE="text/css">
<!--
Body{
scrollber-3dlight-color:#000000;
scrollber-arrow-color:#000000;
scrollber-darkshadow-color:#ffffff;
scrollber-face-color:#ea9e00;
scrollber-highlight-color:#ffffff;
scrollber-shadow-color:#000000;
scrollber-track-color:#ffffff;
}-->
</STYLE>
</head>
<body>
<table>
<tr>
<td>
<marquee id="maid1" scrollamount="30" truespeed direction="down" height=80" loop="10000000000000000000" onmouseover=this.stop() onmouseout=this.start() width="20">
<font size="5"><font color="#ff0000">

</font></font color></marquee>
</td>
<td>
<marquee id="maid2" scrollamount="30" truespeed direction="down" height=80" loop="10000000000000000000" onmouseover=this.stop() onmouseout=this.start() width="20">
<font size="5"><font color="#ff0000">

</font></font color></marquee>
</td>
<td>
<marquee id="maid3" scrollamount="30" truespeed direction="down" height=80" loop="10000000000000000000" onmouseover=this.stop() onmouseout=this.start() width="20">
<font size="5"><font color="#ff0000">

</font></font color></marquee>
</td>
<td>
<marquee id="maid4" scrollamount="30" truespeed direction="down" height=80" loop="10000000000000000000" onmouseover=this.stop() onmouseout=this.start() width="20">
<font size="5"><font color="#ff0000">

</font></font color></marquee>
</td>
<td>
<marquee id="maid5" scrollamount="30" truespeed direction="down" height=80" loop="10000000000000000000" onmouseover=this.stop() onmouseout=this.start() width="20">
<font size="5"><font color="#ff0000">

</font></font color></marquee>
</td>
<td>
<marquee id="maid6" scrollamount="30" truespeed direction="down" height=80" loop="10000000000000000000" onmouseover=this.stop() onmouseout=this.start() width="20">
<font size="5"><font color="#ff0000">

</font></font color></marquee>
</td>
</tr>
</table>

<input type="button" value="Stop" onClick="jsStop()"><br>
<input type="button" value="回す"onClick="chuusenn()"><br>
<input type="button" value="リセット" onClick="init()"><br>
<hr size="10">
<marquee behavior="alternate" direction="up" height="50"><marquee direction="right"><strong><em>
↑の原理を利用してスロット作りたいなぁ。。。</strong></em>
</marquee></marquee>
<hr size="10">
<marquee behavior="alternate" direction="up" height="50">
まぁ、今回はこの程度で終わりです。
</marquee>
<marquee Bgcolor="#7f7f7f"><marquee behavior="alternate">
サンプルプログラムIIをお楽しみに!(次回いつになるか知んねぇケド
</marquee>
</body>
</html>

<script language="javascript">
<!--
function jsStop(){
var i;

for(i=1;i<7;i++){
document.all("maid" + i).stop();
}

}
-->
</script>

この回答への補足

補足ですみません。
横1列でそろうということはできませんか?
もし、だめなら図を素早く変えさせることはできますか?

補足日時:2005/06/27 21:43
    • good
    • 0

>横1列でそろうということはできませんか?



???横一列の意味がわかりません。

回答欄に記述したものは横一列になっていると思うのですが。。。
    • good
    • 0

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