this.context=new Object();
documentParameter.getRectangle=function (){
if(window.innerWidth){
return [window.innerWidth,window.innerHeight];
}
else{
if(document.compatMode=="CSS1Compat"){
return [document.documentElement.clientWidth,document.documentElement.clientHeight];
}
else{
return [document.body.clientWidth,document.body.clientHeight];
}
}
}
documentParameter.getWidth() =function(){
var w=this.getRectangle();
return w[0];
}
this.getHeigt() =function(){
var h=this.getRectangle();
return h[1];
}
}
var s =new documentParameter();
alert(s.getWidth());
documentParameter.getRectangle=function (){
if(window.innerWidth){
return [window.innerWidth,window.innerHeight];
}
else{
if(document.compatMode=="CSS1Compat"){
return [document.documentElement.clientWidth,document.documentElement.clientHeight];
}
else{
return [document.body.clientWidth,document.body.clientHeight];
}
}
}
documentParameter.getWidth() =function(){
var w=this.getRectangle();
return w[0];
}
this.getHeigt() =function(){
var h=this.getRectangle();
return h[1];
}
}
var s =new documentParameter();
alert(s.getWidth());