JavaScript Reference/Event Handlers Reference/onTimeError — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:22, 26 мая 2010
Содержание
"onTimeError" Example
<html xmlns:t = "urn:schemas-microsoft-com:time">
<head></head>
<body ontimeerror="alert("An HTML+TIME error has ocurred")">
<?import namespace=t urn="urn:schemas-microsoft-com:time" implementation="#default#time2"/>
<t:excl id=t1
onend="alert("The animation ended")"
onbegin="alert("Beginning animation!")"
begin="indefinite"
dur="5"
repeatCount="3">
<t:animatemotion
id=a1
targetElement="myDiv"
to="250,0"
autoReverse="true"
begin="1"
dur="2">
</t:animatemotion>
</t:excl>
<div class=time
id=myDiv
style="background-color: yellow;">Animated div element.
</div>
<p> </p>
<button onclick=t1.beginElement();>Start animation</button>
<button onclick=t1.endElement();>Stop animation</button>
</body>
</html>
"onTimeError" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<a> <acronym> |
| |<address> <area> |
| |<b> <big> |
| |<blockquote> <button> |
| |<caption> <center> |
| |<cite> <code> |
| |<dd> <del> |
| |<dir> <div> |
| |<dl> <dt> |
| |<em> <fieldset> |
| |<font> <form> |
| |<hn> <hr> |
| |<i> <iframe> |
| |<img> <input type="button"> |
| |<inputtype="checkbox"> <input type="file"> |
| |<input type="hidden"> <input type="image"> |
| |<input type="password"> <input type="radio"> |
| |<input type="reset"> <inputtype="submit"> |
| |<input type="text"> <ins> |
| |<kbd> <legend> |
| |<li> <listing> |
| |<marquee> <menu> |
| |<ol> <option> |
| |<p> <pre> |
| |<q> <s> |
| |<samp> selection |
| |<small> <span> |
| |<strike> <strong> |
| |<sub> <sup> |
| |<table> <tbody> |
| |<td> <textarea> |
| |<tfoot> <th> |
| |<thead> <tr> |
| |<tt> <u> |
| |<ul> <var> |
| |<xmp> |
+----------------+--------------------------------------------------------------+
"onTimeError" Properties
+----------------+--------------------------------------------------------------+
| Properties |srcElement type |
+----------------+--------------------------------------------------------------+
"onTimeError" Syntax and Note
Note:
This event fires when a specific time error occurs.