onFinish

marqueeタグで文字の移動が終了した時に発生します。Windows版Internet Explorerのみ利用することができます。

構文

<marquee onFinish="イベント発生時の処理">
マーキーオブジェクト.onfinish = "イベント発生時の処理"

例文

<html>
 <head>
  <title>onFinish</title>
  <script type="text/javascript"><!--
  window.onload = function() {
   document.getElementById("mqe").onfinish = function() {
    document.getElementById("result").innerHTML = "Finish !!";
   }
  }
  // --></script>
 </head>
 <body>
 <marquee id="mqe" loop="1">sample text</marquee>
 <div id="result"></div>
 </body>
</html>

関連記事

スポンサーリンク

border-collapse セルのボーダーの表示の仕方を指定する

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る