"eventPhase" property in action, an application please.

wxdqz

New Member
Hello everyone!
In expirmenting the action of the NS7's property: "eventPhase", I have made this code, but it does not work.
The code is required to show every phase of an event on the time it is born, at least the two later phases.
Would someone help me please modifying it to show that, or give me a completely substituent one.

<HTML>
<HEAD>
<STYLE type="text/css">
<!--
.out{height:120; width:120; background-color:#ff9966}
.in{height:60; width:60; margin:30; background-color:lavender}
.phases{position:absolute; top:15; left:150;}
-->
</STYLE>
<SCRIPT type="text/javascript">
function Whichone(EVENT){
if(EVENT.eventPhase == 2) GHARAD.value= EVENT.eventPhase;
if(EVENT.eventPhase == 3) ERTEQA.value= EVENT.eventPhase;
}
// -->
</SCRIPT>
</HEAD> <BODY>
<DIV id="OUTER" class="out">
<DIV id="INNER" class="in"></DIV>
</DIV><!--(*)-->
<FORM name="ATWARR" class="phases" dir="rtl">
<INPUT name="CAPTR" size=6> :劓?轻掬?CaptPhase<BR>
<INPUT name="TARGT" size=6> :嵯?轻垩諥tTarget<BR>
<INPUT name="PROPG" size=6> :劓?轻茄兽橇PropagPhase
</FORM>
<SCRIPT type="text/javascript">
KHAREJ= document.getElementById("OUTER");
DAKHEL= document.getElementById("INNER");
QANS= document.ATWARR.CAPTR;
GHARAD= document.ATWARR.TARGT;
ERTEQA= document.ATWARR.PROPG;
QANS.value= GHARAD.value= ERTEQA.value= ""; var EVENT

KHAREJ.onclick= DAKHEL.onclick= function(EVENT){
if(EVENT.eventPhase == 1) QANS.value= EVENT.eventPhase;
Whichone;
}
</SCRIPT>
</BODY>
</HTML>
 
Top