js打开一个新的窗口

var url=”<%=path %>/gonggaoDetail.action?gonggaoId=”+gonggaoId;

var n=””;

var w=”480px”;

var h=”500px”;

var s=”resizable:no;help:no;status:no;scroll:yes”;

openWin(url,n,w,h,s);

 

以上win10和google不能用需要换成

window.open(url, “_blank”, “scrollbars=yes,resizable=1,modal=false,alwaysRaised=yes”);

 

 

 

 

文件上传

function up()

{

var pop=new Popup({ contentType:1,isReloadOnClose:false,width:400,height:200});

pop.setContent(“contentUrl”,”<%=path %>/upload/upload.jsp”);

pop.setContent(“title”,”文件上传”);

pop.build();

pop.show();

//另一红上传方式可以参照进销存

}

 

 

<script>

<!–var day=””;

var month=””;

var ampm=””;

var ampmhour=””;

var myweekday=””;

var year=””;

mydate=new Date();

myweekday=mydate.getDay();

mymonth=mydate.getMonth()+1;

myday= mydate.getDate();

year= mydate.getFullYear();

if(myweekday == 0)

weekday=” 星期日 “;

else if(myweekday == 1)

weekday=” 星期一 “;

else if(myweekday == 2)

weekday=” 星期二 “;

else if(myweekday == 3)

weekday=” 星期三 “;

else if(myweekday == 4)

weekday=” 星期四 “;

else if(myweekday == 5)

weekday=” 星期五 “;

else if(myweekday == 6)

weekday=” 星期六 “;

document.write(year+”年”+mymonth+”月”+myday+”日 “+weekday);

//–>

</script>

 

论文查重降重QQ群: 905165878
毕业设计毕业论文互助QQ群: 905165878
定制讲解加:QQ号: 884563046 (微信同Q号不常上)