onStart

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

構文

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

例文

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

関連記事

スポンサーリンク

兵庫県の電車路線、駅の一覧

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

上に戻る