|
[这个贴子最后由叶秋霜在 2008/01/31 21:31 第 2 次编辑]
近日发现这位自称为 孙 的会员在小字报发布求助信息。
[color=#DC143C]现声明:
本版块的 小字报 不宜用于发布求助信息,需要求助的会员请自觉发贴。
希广大会员互相知照!
谢谢!
为了让这位孙 会员能早日得到帮助,现由我代将其发布的原小字报发布,下不为例!!
内容如下:
我有一些代码,但是我不怎么明白,有哪位高手帮我翻译一下,我万分感激 代码为!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>教务管理系统</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="javascript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<style type="text/css">@import url( Style.css );
</style>
<SCRIPT language="javascript">
<!--
function maxWindow()
{
window.moveTo( -1, -1 );
window.resizeTo( screen.availWidth+2, screen.availHeight+2);
}
function changeSize()
{
var windowHeigh = document.body.clientHeight;
//var windowWidth = document.body.clientWidth;
var rightLayerObj = document.getElementById("rightLayer");
var leftLayerObj = document.getElementById("leftLayer");
var bottomLayerObj = document.getElementById("bottomLayer");
var showParaterstring = new String();
var showParater = document.all("FlagOfShowLoginLayer").innerText ;
//rightLayer.style.width = windowWidth - 150;
if( windowHeigh-20>0)
{
bottomLayerObj.style.top = windowHeigh-20;
}
if( windowHeigh-122>0)
{
if(showParater=="1")
{
leftMenuLayer.style.height = windowHeigh - 122;
}
else
{
if( windowHeigh-245>0 )
{
leftMenuLayer.style.height = windowHeigh - 245;
}
}
rightLayerObj.style.height = windowHeigh -122;
}
}
function setInitSize()
{
var windowHeigh = document.body.clientHeight;
var windowWidth = document.body.clientWidth;
var rightLayerObj = document.getElementById("rightLayer");
var leftLayerObj = document.getElementById("leftLayer");
var bottomLayerObj = document.getElementById("bottomLayer");
var showParater = document.all("FlagOfShowLoginLayer").innerText ;
//rightLayer.style.width = windowWidth - 150;
if( windowHeigh-20>0 )
{
bottomLayerObj.style.top = windowHeigh-20;
}
if( windowHeigh-122>0)
{
if(showParater=="1")
{
leftMenuLayer.style.height = windowHeigh - 122;
}
else
{
if( windowHeigh-245>0)
{
leftMenuLayer.style.height = windowHeigh - 245;
}
}
rightLayerObj.style.height = windowHeigh -122;
}
}
function changepattern(obj)
{
obj.style.backgroundColor = "#3186D6";
obj.style.border = "1px solid #A5C7EF";
//border-left-width=1px;
//obj.style.border-left-st
}
function returnpattern(obj)
{
obj.style.backgroundColor = "transparent";
obj.style.border = "0px solid #9C9A9C";
}
function checkIsNull()
{
if( document.getElementById("username").value=="")
{
alert("请输入用户名!");
document.getElementById("username").focus();
return false;
}
if( document.getElementById("password").value=="")
{
alert("请输入密码!");
document.getElementById("password").focus();
return false;
}
}
//-->
</SCRIPT>
</HEAD>
<body onresize="changeSize()" bgColor="#ffffff" scroll="no" onload="setInitSize();maxWindow()">
<div id="topLayer1">
<table cellSpacing="0" cellPadding="0" width="100%">
<tr height="80">
<!-- 学校Logo图片 //-->
<td id="schoolImage" background="LogonPicture.gif" width="768"> </td>
<td>
</td>
<td style="BACKGROUND-ATTACHMENT: fixed; BACKGROUND-POSITION-Y: bottom; BACKGROUND-REPEAT: no-repeat"
width="227"> </td>
</tr>
</table>
</div>
<div id="topLayer2">
<table dir="ltr" style="ADDING-LEFT: 5px; FONT-SIZE: 9pt" cellSpacing="0" cellPadding="0"
width="100%">
<TR dir="ltr" vAlign="middle" align="left" height="22">
<td style="ADDING-LEFT: 6px" vAlign="bottom" align="left" width="142">
<table height="18" cellSpacing="0" cellPadding="0">
<tr>
<td id="homeSpan" style="FONT-WEIGHT: bold; PADDING-TOP: 2px; TEXT-ALIGN: center" vAlign="middle"
width="35"><A class="home" href="index1.aspx">首 页</A>
</td>
<td style="WIDTH: 6px; COLOR: #ffffff" vAlign="top" align="center">|</td>
<td id="loginSpan" style="FONT-WEIGHT: bold; PADDING-TOP: 2px; TEXT-ALIGN: center" vAlign="middle"
width="35"><A class="home" id="quitLink" href="Login.aspx?username=" target="_top">退
出</A></td>
</tr>
</table>
</td>
<td class="oneTopLayer2">
<td class="twoTopLayer2">
<script language="javascript">
today=new Date();
function initArray()
{
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments
}
var d=new initArray
(
"星期日",
"星期一",
"星期二",
"星期三",
"星期四",
"星期五",
"星期六"
);
document.write
(
"<font style=';color=#000000;font-size:9pt;font-family:宋体;text-align:right;';> ",
today.getYear(),"年",
today.getMonth()+1,"月",
today.getDate(),"日",
d[today.getDay()+1],""
);
</script>
</td>
</td></TR>
</table>
</div>
<div id="leftLayer">
<!--Begin---登录界面---Begin //-->
<div id="loginLayer">
<form action="Login.aspx" method="post">
<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="150" align="left" border="0">
<TR>
<TD id="login" style="ADDING-BOTTOM: 5px" colSpan="2">用户登录</TD>
</TR>
<TR vAlign="bottom" height="20">
<TD>身 份</TD>
<TD><SELECT id="role" style="FONT-SIZE: 9pt; WIDTH: 90px; HEIGHT: 25px" size="0" name="role">
<OPTION value="student" selected>学生</OPTION>
<OPTION value="teacher">教师</OPTION>
<OPTION value="leader">领导</OPTION>
<OPTION value="supervisor">督导</OPTION>
<option value="other">其它</option>
</SELECT></TD>
</TR>
<TR height="20">
<TD vAlign="bottom">账 号</TD>
<TD vAlign="bottom"><INPUT class="inputaa" id="username" type="text" name="username" style="WIDTH: 90px"></TD>
</TR>
<TR height="19">
<TD vAlign="bottom">密 码</TD>
<TD vAlign="bottom"><INPUT class="inputaa" id="password" type="password" name="password" style="WIDTH: 90px"></TD>
</TR>
<TR>
<TD></TD>
<TD style="PADDING-TOP: 5px"><INPUT class="inputb" onclick="return checkIsNull()" type="submit" value="登 录"></TD>
</TR>
<tr>
<td style="HEIGHT: 10px" colSpan="2"><FONT face="宋体"></FONT></td>
</tr>
</TABLE>
</form>
</div>
<!--End---登录界面---End //-->
<div id="leftMenuLayer"><iframe name="framMenu" align="left" marginWidth="0" hspace="0" vspace="0" marginHeight="0"
src="back/LeftFrame.aspx" frameBorder="no" width="150" scrolling="no" height="100%">
</iframe>
</div>
</div>
<div id="rightLayer">
<IFRAME name="framBody" align="left" marginWidth="0" hspace="0" vspace="0" marginHeight="0"
src="back/MainFrame.aspx" frameBorder="no" width="100%" scrolling="auto" height="100%">
</IFRAME>
</div>
<div id="bottomLayer" align="center"><iframe name="framFoot" align="middle" marginWidth="0" hspace="0" vspace="0" src="back/CopyRight.aspx"
frameBorder="no" width="100%" height="100%"></iframe>
</div>
<span id="FlagOfShowLoginLayer" display="none"></span>
</body>
</HTML>
希望能得到很快的答复,谢谢了 --- 代发贴者:叶秋霜
备注:该小字报已被我删除。
(本公子这厢有礼了。) |
|