document.value什么意思?如何修改?

zhangyu_ji 2003-10-09 04:31:00
document.value什么意思?如何修改?
...全文
375 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhangyu_ji 2003-10-09
  • 打赏
  • 举报
回复
<html>
<head>
<title>办公系统--公文处理</title>
</head>

<STYLE>BODY {
COLOR: #404040; FONT-FAMILY: "宋体"; FONT-SIZE: 9pt; FONT-WEIGHT: 400
}
THEAD {
COLOR: #404040; FONT-FAMILY: "宋体"; FONT-SIZE: 9pt; FONT-WEIGHT: bold
}
TBODY {
COLOR: #404040; FONT-FAMILY: "宋体"; FONT-SIZE: 9pt; FONT-WEIGHT: 400
}
TBODY.special1 {
COLOR: #404040; FONT-FAMILY: "宋体"; FONT-SIZE: 8pt; FONT-WEIGHT: 400
}
TBODY.special2 {
COLOR: #404040; FONT-FAMILY: "宋体"; FONT-SIZE: 9pt; FONT-WEIGHT: 400
}
A {
COLOR: darkblue; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
A:hover {
COLOR: red; FONT-FAMILY: "宋体"; TEXT-DECORATION: underline
}
TEXTAREA {
FONT-FAMILY: "宋体"; FONT-SIZE: 9pt
}
</STYLE>
<!--script
//
/*
HereCode Meaning
0 : It's All Right
-1 : Not pass Arguments
-2 : Lose Session.userid
-3 : Not Find The Record
-4 : The Record done by another one
-5 : Not find the file that deal the record
*/
import inbox.ssc
var HereCode =0; //Current Code ,successed if >0
var HereString = ""; //
session.nr_obj = document.value.objclass
if (! exists( document.value.info_id ) ) // no argument
{
HereCode = -1;
HereString = HereString + "<center>参数错误</center><br>";
HereString += "<center>返回 <a href='content.htm?opened=1&selected_obj="+document.value.objclass+"'>收件箱</a> </center><br>";
} else if ( ! exists(session.userid) ) //no userid
{
HereCode = -2;
HereString += "尚未登录,请重新<a href=Javascript:top.location.href='../index.html'>登录</a><br><br>"
} else // has userid & argument(infoid)
{
//now examing whether the record have been done by other;
var mysql = "SELECT USER_ID, MUSER_ID FROM WDZX.G_PNODES WHERE PID="+document.value.pid+" AND ID="+document.value.pnid;

var myquery=connection.CreateQuery(mysql);
var muser_id;
var user_id;

if (myquery.MoveNext()) {
muser_id=myquery.GetValue("MUSER_ID");
user_id = myquery.GetValue("USER_ID");
}

if (muser_id==null) {
muser_id = session.userid;
}
if ( user_id == null ) {
user_id = session.userid;
}

myquery.Close();
if (session.userid != muser_id && session.userid != user_id)
{
var usersql="SELECT UNAME FROM WDZX.G_USERS WHERE ID="+muser_id;
var userquery=connection.CreateQuery(usersql);
if (userquery.MoveNext())
var m_uname=userquery.GetValue("UNAME");
else
var m_uname="";
HereCode = -4;
document.writeln("<script language=javascript>")
document.writeln('alert("此文件已被 <'+m_uname+'> 处理")');
document.writeln('location.href="content.htm"')
document.writeln("</script>")
userquery.Close();

}
if (HereCode == 0 ) // all right ,processing to
{
var info_id1 = document.value.info_id;
pnid1 = document.value.pnid;
var sql1 = vw_inboxlist() + " AND A.INFO_ID=" + info_id1 + " AND A.PNID=" + pnid1 ;
var pcinbox1 = connection.CreateQuery(sql1);
if (pcinbox1.MoveNext())
{ // doing the record
//get Html for the record
var html=pcinbox1.GetValue( "HTML" );
var box_pid=pcinbox1.GetValue( "PID" );
var box_pnid=pcinbox1.GetValue( "PNID" );
var box_obj = pcinbox1.GetValue("OBJCLASSPY");
var box_act = pcinbox1.GetValue("ACTNAME");
var box_actid = pcinbox1.GetValue("ACTID");
var box_hasCONTENT = pcinbox1.GetValue("HASCONTENT");
pcinbox1.Close();
/*
if (box_hasCONTENT > 0)
document.write("<frameset rows='30,*,40' frameborder=0 border=0 framemargin=0> ");
else
*/
document.write("<frameset rows='30,*' frameborder=0 border=0 framemargin=0> ");
var frame1 = "<frame noResize name=top1 src= 'button2.html?box_infoid="+document.value.info_id
+"&box_objclass="+box_obj
+"&box_pid="+box_pid
+"&box_plugin=1"
+"box_resolution=1"
+"&box_pnid="+box_pnid
+"&box_act="+box_act
+"&box_actid="+box_actid
+"&box_hasCONTENT="+box_hasCONTENT
+"' noresize scrolling=no>";
var frame2 = "<frame noResize name=main1 src='"+document.value.objclass+"/"+document.value.objclass+".html?box_infoid="+document.value.info_id
+ "&box_pid="+box_pid
+ "&box_pnid="+box_pnid
+ "&box_objclass="+box_obj
+ "&box_actid="+box_actid
+ "&box_actname="+box_act
+ "&box_hasCONTENT="+box_hasCONTENT
+ "'>";
var frame3 = "<frame noResize name=fj src='../nr/fj.html?info_id="+document.value.info_id
+ "&box_pid="+box_pid
+ "&box_pnid="+box_pnid
+ "&box_objclass="+box_obj
+ "&box_actid="+box_actid
+ "&box_actname="+box_act
+ "&box_hasCONTENT="+box_hasCONTENT
+ "'>";
document.write(frame1);
document.write(frame2);
if (box_hasCONTENT > 0)
document.write(frame3);

document.write("</frameset> \n");

} else // ha ,the record is not exists;
{
HereCode = -3 ;
HereString += "<center>未找到指定记录</center><br>";
HereString += "<center>返回 <a href='content.htm?opened=1&selected_obj="+document.value.objclass+"'>收件箱</a> </center><br>";
}
}

}

if (HereCode <0 )
{
//document.writeln("发生错误,代码:"+HereCode+";错误信息:<br>");
document.writeln(HereString);
}
-->
</html>
kingdomzhf 2003-10-09
  • 打赏
  • 举报
回复
<body>
<script>
document.value='p';
alert(document.value);
</script>
</body>

document本身没有这个属性,是用户加上去的

87,907

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧