aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/globaleventhandlers/onmouseover/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/globaleventhandlers/onmouseover/index.html
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/globaleventhandlers/onmouseover/index.html')
-rw-r--r--files/ja/web/api/globaleventhandlers/onmouseover/index.html73
1 files changed, 73 insertions, 0 deletions
diff --git a/files/ja/web/api/globaleventhandlers/onmouseover/index.html b/files/ja/web/api/globaleventhandlers/onmouseover/index.html
new file mode 100644
index 0000000000..7a6dea5747
--- /dev/null
+++ b/files/ja/web/api/globaleventhandlers/onmouseover/index.html
@@ -0,0 +1,73 @@
+---
+title: GlobalEventHandlers.onmouseover
+slug: Web/API/GlobalEventHandlers/onmouseover
+tags:
+ - API
+ - Event Handler
+ - GlobalEventHandlers
+ - HTML DOM
+ - Property
+ - Reference
+translation_of: Web/API/GlobalEventHandlers/onmouseover
+---
+<div>{{ApiRef("HTML DOM")}}</div>
+
+<p><code><strong>onmouseover</strong></code> は {{domxref("GlobalEventHandlers")}} ミックスインのプロパティで、{{event("mouseover")}} イベントを処理す{{domxref("EventHandler" ,"イベントハンドラー")}}です。</p>
+
+<p><code>mouseover</code> イベントは、ユーザーが特定の要素の上にマウスを移動させたときに発生します。</p>
+
+<h2 id="構文">構文</h2>
+
+<pre class="syntaxbox notranslate"><em>element</em>.onmouseover = <em>function</em>;
+</pre>
+
+<h2 class="editable" id="例">例</h2>
+
+<p>この例は、<code>onmouseover</code> と <code>onmouseout</code> イベントを段落に追加しています。マウスを要素の上や外に移動してみてください。</p>
+
+<h3 id="HTML">HTML</h3>
+
+<pre class="brush: html notranslate">&lt;p&gt;Test your mouse on me!&lt;/p&gt;</pre>
+
+<h3 id="JavaScript">JavaScript</h3>
+
+<pre class="brush: js notranslate">const p = document.querySelector('p');
+p.onmouseover = logMouseOver;
+p.onmouseout = logMouseOut;
+
+function logMouseOver() {
+ p.innerHTML = 'MOUSE OVER detected';
+}
+
+function logMouseOut() {
+ p.innerHTML = 'MOUSE OUT detected';
+}</pre>
+
+<h3 id="結果">結果</h3>
+
+<p>{{EmbedLiveSample("Example")}}</p>
+
+<h2 id="仕様">仕様</h2>
+
+<table class="spectable standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">仕様書</th>
+ <th scope="col">状態</th>
+ <th scope="col">備考</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML WHATWG','webappapis.html#handler-onmouseover','onmouseover')}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td></td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="ブラウザの互換性">ブラウザの互換性</h2>
+
+<div>
+
+
+<p>{{Compat("api.GlobalEventHandlers.onmouseover")}}</p>
+</div>