javascript 常用代码大全[1]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 ifensin 的 blog

 

//打开模式对话框
function doselectuser(txtid)
{

      strfeatures="dialogwidth=500px;dialogheight=360px;center=yes;middle=yes ;help=no;status=no;scroll=no";
      var url,strreturn;
 
      url="seluser.aspx";
       
      strreturn=window.showmodaldialog(url,'',strfeatures);  

}

//返回模式对话框的值
function okbtn_onclick()
{
var commstr='';         
     
window.returnvalue=commstr;

      window.close() ;
}
全屏幕打开 ie 窗口
var winwidth=screen.availwidth ;
var winheight=screen.availheight-20;
window.open("main.aspx","surveywindow","toolbar=no,width="+ winwidth  +",height="+ winheight  +",top=0,left=0,scrollbars=yes,resizable=yes,center:yes,statusbars=yes");
break
//
脚本中中使用xml
function initialize() {
  var xmldoc
  var xsldoc

  xmldoc = new activexobject('microsoft.xmldom')
  xmldoc.async = false;

  xsldoc = new activexobject('microsoft.xmldom')
  xsldoc.async = false;

本文关键:javascript 常用代码大全
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top