try
DynAPI.onLoad=function() {
myListener = new EventListener()
myListener.onmouseup=function(e) {
alert('Document Clicked')
}
myListener.onmousemove=function(e) {
status="x="+e.x+" y="+e.y;
}
DynAPI.document.addEventListener(myListener)
}
DynAPI.onResize=function(){
status="onresize";
}
----- Original Message -----
From: "GORTSILAS ANDREAS" <ag...@si...>
To: <dyn...@li...>
Sent: Thursday, January 18, 2001 1:18 PM
Subject: [Dynapi-Dev] Document resize event
> Hello,
>
> I am new to DynAPI ...
>
> I decided to try the dynacode dynapi distribution... the sources I use are
> 2001-01-13...
>
> I am trying to catch the onresize event of the browser window in order to
> keep a layer centered in the window frame...
>
> A sample code I use is:
>
> DynAPI.onLoad=function() {
> myListener = new EventListener()
> myListener.onmouseup=function(e) {
> alert('Document Clicked')
> }
> myListener.onmousemove=function(e) {
> status="x="+e.x+" y="+e.y;
> }
> myListener.onresize=function(e) {
> status="onresize";
> }
>
> DynAPI.document.addEventListener(myListener)
> }
>
> When i try the above code the only event which works is the onmousemove...
>
> Can any one help me? Why is this happening?
>
> Thank you
>
> Andreas Gortsilas
> *********************************
> * Andreas Gortsilas
> * Systems Engineer - R&D
> * Quality Manager - R&D
> * Singular Computer Applications
> * Tel.: (301) 64 79 600 (688)
> * SMTP: ag...@si...
> * HTTP://www.singular.gr
> *********************************
>
>
> _______________________________________________
> Dynapi-Dev mailing list
> Dyn...@li...
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
>
>
|