-----------------------------------------------------------------------------------------------------------------
各种字符:⊙●○①⊕◎Θ⊙¤㊣★☆♀◆◇◣◢◥▲▼△▽⊿◤ ◥ ▂ ▃ ▄ ▅ ▆ ▇ █ █ ■ ▓ 回 □ 〓≡ ╝╚╔ ╗╬ ═ ╓ ╩ ┠ ┨┯ ┷┏ ┓┗ ┛┳⊥﹃﹄┌ ┐└ ┘∟「」↑↓→←↘↙♀♂┇┅ ﹉﹊﹍﹎╭ ╮╰ ╯ *^_^* ^*^ ^-^ ^_^ ^︵^ ∵∴‖︱ ︳︴﹏﹋﹌︵︶︹︺ 【】〖〗@﹕﹗// " _ < > `,·。≈{}~ ~() _ -『』√ $ @ * & # ※ 卐 々∞Ψ ∪∩∈∏ の ℡ ぁ §∮〝〞ミ灬ξ№∑⌒ξζω*ㄨ ≮≯ +-×÷﹢﹣±/=∫∮∝ ∞ ∧∨ ∑ ∏ ∥∠ ≌ ∽ ≦ ≧ ≒﹤﹥じ☆veve↑↓⊙●★☆■♀『』◆◣◥▲Ψ ※◤ ◥ →№←㊣∑⌒〖〗@ξζω□∮〓※∴ぷ▂▃▅▆█ ∏卐【】△√ ∩¤々♀♂∞①ㄨ≡↘↙▂ ▂ ▃ ▄ ▅ ▆ ▇ █┗┛╰☆╮ *
---------------------------------------------------------我要刷新---------------------------------------
自动刷新:<meta http-equiv="REFRESH" content="60;URL= ../jsp/PrintQuXian.do" />
-----------------------------------------------------------------------------------------------------------------
ftp帐户自动登陆:ftp://user:123@218.5.76.225/
-----------------------------------------------------------------------------------------------------------------
图片上链接:
<map name="FPMap1">
<area href="TNAdd1.htm" shape="circle" coords="42, 56, 31" />
</map>
-----------------------------------------------------------------------------------------------------------------
字体的颜色:<font color="#FF0000">红色</font> <font color="#008000">绿色</font>
<font color="#FF0000"></font> <font color="#008000"></font>
-----------------------------------------------------------------------------------------------------------------
表单:
<form name="form1" method="get" action="ClassMeizhiMeiLiang.do">
<div style="visibility: hidden"><xsl:value-of select="buttonName"/></div>
<input type="submit" value="返回" name="B1" onclick="self.location.href='SysLeadManagePage.sea'" class="ts">
-----------------------------------------------------------------------------------------------------------------
参数:TUANWEI-LIU.do?nameCo={nameCo}&&relationCo={relationCo}
-----------------------------------------------------------------------------------------------------------------
如果:<xsl:if test="alert/@show[.='1']"><xsl:value-of select="alert"/></xsl:if>
-----------------------------------------------------------------------------------------------------------------
<bgsound src="../resources/css/W.mid" loop="-1"/>
<body topmargin="1" leftmargin="2" onload="movetocenter('help.htm','160','30')">
-----------------------------------------------------------------------------------------------------------------
单元格-对齐:<td width="14%" align="right" nowrap="" >
-----------------------------------------------------------------------------------------------------------------
只准数字输入的文本框:
<onkeypress="return (//d/.test(String.fromCharCode(event.keyCode)))" style="ime-mode: disabled">
-----------------------------------------------------------------------------------------------------------------
数字:
<input onKeypress="return (//d/.test(String.fromCharCode(event.keyCode)))" style="ime-mode:Disabled"><br>
-----------------------------------------------------------------------------------------------------------------
教师同比的ACTION:点击直方图传Tectongbi.do?Image=1,点击折线图传Tectongbi.do?Image=0 onclick="b()"
---------参数: ?No={sysid}&studentid={studentid}---------------------------------------------
---------参数:ST_OccupationIntentionContentEdit.do?studentid={studentid}&ButtonName=EDIT
---------参数:ST_ProjectsRecordListAddEdit.do?studentid={studentid}&ButtonName=ADD
-----------------------------------------------------------------------------------------------------------------
空格:  尖括号:> htmp下的空格: &
-----------------------------------------------------------------------------------------------------------------
<xsl:value-of select="title1"/>
<xsl:for-each select="terminology/message"></xsl:for-each>
<xsl:value-of select="id"/>
-----------------------------------------------------------------------------------------------------------------
<xsl:value-of select="system/appMessage/message"/><xsl:value-of select="system/appMessage/ResultMsg"/>
<xsl:value-of select="PlaceOneMessage"/>><xsl:value-of select="PlaceTwoMessage"/>
-----------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="GB2312"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="GB2312" indent="no"/>
<xsl:template match="root">
</xsl:template>
</xsl:stylesheet>
-----------------------------------------------------------------------------------------------------------------
用回车键提交
<SCRIPT language="JavaScript1.2">
<![CDATA[
function onkeyboard()
{
if(event.keyCode==13)
b()
}
function b()
{
document.a.action="login.do"
document.a.submit();
}
]]>
</SCRIPT>
----------------------------
<body background="../resources/images/indexbg.gif" onkeypress="onkeyboard()">
-----------------------------------------------------------------------------------------------------------------
<input type="hidden" name="index" size="8">
<xsl:attribute name="value">
<xsl:value-of select="index"/>
</xsl:attribute>
</input>
-----------------------------------------------------------------------------------------------------------------
<input type="hidden" name="time" size="8">
<xsl:attribute name="value"><xsl:value-of select="time"/></xsl:attribute></input>
-------------------------
<input type="hidden" name="id" size="8">
<xsl:attribute name="value">
<xsl:value-of select="id"/>
</xsl:attribute>
</input>
------------------------------- onclick="b()" onchange="a()"---------------------------------------
------------------------------------------------------------------------------------------------------
-------------ENCTYPE="multipart/form-data" 上传文件用到的--------------------------------------------
<form name="cardsform" ENCTYPE="multipart/form-data">
--------------------------------------------------复选框传值
<input type="checkbox" name="studentid">
<xsl:attribute name="value">
<xsl:value-of select="var1"/>
</xsl:attribute>
</input>
----------------------------------------
<input type="hidden" name="PlaceOneMessage" size="8">
<xsl:attribute name="value">
<xsl:value-of select="PlaceOneMessage"/>
</xsl:attribute>
</input>
-----------------------------------------------------------------------------------------------------------------
function a(){
document.cardsform.ButtonName.value="EDIT"
document.cardsform.action="ST_AddEduRecordRGNext.do"
document.cardsform.submit();
}
function b(){
document.cardsform.ButtonName.value="ADD"
document.cardsform.action="ST_AddEduRecordRGNext.do"
document.cardsform.submit();
}
-----------------------------------------------------------------------------------------------------------------
<input type="hidden" name="PlaceTwoMessage" size="8">
<xsl:attribute name="value">
<xsl:value-of select="PlaceTwoMessage"/>
</xsl:attribute>
</input>
---------------------------------------
<input type="hidden" name="No" size="8">
<xsl:attribute name="value">
<xsl:value-of select="sysid"/>
</xsl:attribute>
</input>
-------------------------------
<input type="hidden" name="Id" size="8">
<xsl:attribute name="value">
<xsl:value-of select="sysid"/>
</xsl:attribute>
</input>
----------------------------------
<input type="hidden" name="studentid" size="8">
<xsl:attribute name="value">
<xsl:value-of select="studentid"/>
</xsl:attribute>
</input>
---------------图片法则----------------------------
<img border="0" width="80" height="100">
<xsl:attribute name="src">
<xsl:value-of select="photo"/>
</xsl:attribute>
</img>
-------------------
<xsl:attribute name="href">
SysUserManagePage.sea?depa={<xsl:value-of select="./@id" />}
</xsl:attribute>
----------------------------------------------
&PlaceOneMessage={PlaceOneMessage}&PlaceTwoMessage={PlaceTwoMessage}
-------------------------------
<input type="submit" value="确定" name="B2" class="19" onClick="document.location.href='SysUserManagePage.sea'">
--------------------------------------
你确定要删除编号为<xsl:value-of select="FixAttributeID" />的<xsl:value-of select="FixAttributeName" />吗?
-----------------------
<a class="link-edit-delete-main" href="Build.do?UserID={number}&PlaceOneMessage={../../PlaceOneMessage}">删除</a>
-----------------------------------------
<input type="hidden" name="PlaceOneMessage" size="8">
<xsl:attribute name="value">
<xsl:value-of select="PlaceOneMessage"/>
</xsl:attribute>
</input>
-----------------------
SysUserManagePageSet.do?PlaceOneMessage={../../PlaceOneMessage}&StudentID={userID}
------------------------
<input type="hidden" name="PlaceOneMessage" size="8">
<xsl:attribute name="value">
<xsl:value-of select="PlaceOneMessage"/>
</xsl:attribute>
</input>
-----------------------------------------循环输出复选框,这是一个正确的范本
<xsl:for-each select="FixAttributeList/FixAttribute">
<xsl:if test=" (position()-1) mod 3=0">
<tr><td></td></tr>
</xsl:if>
<td align="left" width="33%" height="23">
<input type="checkbox" name="FixAttributeID">
<xsl:if test="FixAttributeid/@selected[.='1']">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
<xsl:attribute name="value">
<xsl:value-of select="FixAttributeid"/>
</xsl:attribute>
</input>
<xsl:value-of select="year"/>
</td>
</xsl:for-each>
-----------------------------------------循环输出表格,一行三列输出----------------
<tr>
<xsl:for-each select="techlist/technote"> <xsl:if test=" (position()-1) mod 3=0">
<tr></tr>
</xsl:if>
<td width="11%" height="26" align="center" bordercolor="#C0C0C0"><xsl:value-of select="time"/></td>
<td width="11%" height="26" align="center" bordercolor="#C0C0C0"><xsl:value-of select="huifen"/></td>
<td width="11%" height="26" align="center" bordercolor="#C0C0C0"><xsl:value-of select="revalue"/></td>
</xsl:for-each>
</tr>
--------------------------------------------------------
<xsl:for-each select="dutydescribelist/ChooseType">
<xsl:if test=" (position()-1) mod 3=0">
<tr><td></td></tr>
</xsl:if>
<td align="left" width="20%" height="23">
<input type="checkbox" name="dutydescribe" value="ON">
<xsl:if test="ChooseType_id/@selected[.='1']">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
<xsl:attribute name="value">
<xsl:value-of select="ChooseType_id"/>
</xsl:attribute>
</input>
<xsl:value-of select="ChooseType_name"/>
</td>
</xsl:for-each>
-----
<form action="LoginIn.do" method="get">
------------------
<form name="a" method="get">
-------------
<form name="a" method="get" action="SetVoteTimePage.do">
------------------------------------------------------------
<SCRIPT language="JavaScript1.2">
<![CDATA[
function b()
{
document.a.type.value="start"
document.a.action="SetVoteStartTime.do"
document.a.submit();
}
function d()
{
document.a.type.value="end"
document.a.action="SetVoteStartTime.do"
document.a.submit();
}
function c()
{
document.a.action="SetResultAfresh.do"
document.a.submit();
}
]]>
</SCRIPT>
----------
<input type="hidden" name="type" size="8"/>
-----------
<xsl:comment>
<![CDATA[
function msover(){
event.srcElement.style.backgroundColor="#ccffff";
event.srcElement.style.cursor = "hand";
}
function msoverd(){
event.srcElement.style.backgroundColor="#ff8080";
event.srcElement.style.cursor = "hand";
}
function msout(){
event.srcElement.style.backgroundColor="#FFF6DC";
event.srcElement.style.cursor = "auto";
}
function a(){
document.a.ButtonName.value="EDIT"
document.cardsform.action="ST_AddWorkRecordRGNext.do"
document.cardsform.submit();
}
function b(){
document.a.ButtonName.value="ADD"
document.cardsform.action="ST_AddWorkRecordRGNext.do"
document.cardsform.submit();
}
]]>
</xsl:comment>
---------------------------
<input type="hidden" name="ButtonName" size="8"/>
-------------------------------------------------------
<input type="submit" value="开始投票" name="B2" class="ceng" onclick="b()" />
-----------------------------------------
<input type="submit" value="删除" name="B2" class="19" onclick="b()" />
-----------------------------------------------------------------------------链接提交表单
<form style="BACKGROUND-COLOR: #000000" name="RedF" action method="post">
<a onclick="document.RedF.submit()" href="#">
<u><font color="#800080">登录</font></u></a>
<a onclick="document.RedF.reset()" href="#">
<u><font color="#800080">清空</font></u></a>
-----------------------------------------------------------------------------
<select name="pageNumber" onchange="a()">
<xsl:for-each select="LookPage/Page">
<xsl:if test="PageId/@selected[.='1']">
<option selected="selected">
<xsl:attribute name="value">
<xsl:value-of select="PageId" />
</xsl:attribute>
<xsl:value-of select="PageName" />
</option>
</xsl:if>
<xsl:if test="PageId/@selected[.='0']">
<option>
<xsl:attribute name="value">
<xsl:value-of select="PageId" />
</xsl:attribute>
<xsl:value-of select="PageName" />
</option>
</xsl:if>
</xsl:for-each>
</select>
-------------只需替换少量标签即可
<select name="endmin">
<xsl:for-each select="timed/ChooseType">
<xsl:if test="ChooseType_id/@selected[.='1']">
<option selected='selected'>
<xsl:attribute name="value">
<xsl:value-of select="ChooseType_id"/>
</xsl:attribute>
<xsl:value-of select="ChooseType_name"/>
</option>
</xsl:if>
<xsl:if test="ChooseType_id/@selected[.='0']">
<option>
<xsl:attribute name="value">
<xsl:value-of select="ChooseType_id"/>
</xsl:attribute>
<xsl:value-of select="ChooseType_name"/>
</option>
</xsl:if>
</xsl:for-each>
</select>
=============================
<ChooseTypelist>
<ChooseType>
<ChooseType_id selected="0">100</ChooseType_id>
<ChooseType_name >角色功能</ChooseType_name>
</ChooseType>
</ChooseTypelist>
-----------------------
<departmentlist>
<ChooseType>
<ChooseType_id selected="0">100</ChooseType_id>
<ChooseType_name >系名称</ChooseType_name>
</ChooseType>
</departmentlist>
-----------------
<health>
<ChooseType>
<ChooseType_id selected="0">100</ChooseType_id>
<ChooseType_name >健康状况</ChooseType_name>
</ChooseType>
</health>
------
<graduateid>毕业证号</graduateid>
<studentid>学号</studentid>
<schoolstate>学籍状态</schoolstate>
<classlist>
<ChooseType>
<ChooseType_id selected="0">100</ChooseType_id>
<ChooseType_name >班级</ChooseType_name>
</ChooseType>
</classlist>
--------------------
<specialtylist>
<ChooseType>
<ChooseType_id selected="0">100</ChooseType_id>
<ChooseType_name >专业</ChooseType_name>
</ChooseType>
</specialtylist>
-----------------------
-----------
<devskilllist>
<specialty>技能大类名称</specialty>
<techlist>
<technote>
<tech>技能</tech>
<period>使用时间几个月</period>
<skilllevel>熟练程度</skilllevel>
</technote>
</techlist>
</devskilllist>
===============================================================
<xsl:choose>
<xsl:when test="../../../headpart/head/id/@type[.='5']">
<a class="zi" target="_parent" href="../TeacherLeaveWord.sea?index={../../index}&id={.}">
<xsl:value-of select="."/>
</a>
</xsl:when>
<xsl:when test="../id/@Type[.='6']">
<a class="zi" href="Difference.do?index={../../index}&id={id}">
<xsl:value-of select="."/>
</a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="."/>
</xsl:otherwise>
</xsl:choose>
---------------------------------------------------------------
<newcollege>学校编号</newcollege>
<newdepa>院系编号</newdepa>
<newspeciality>专业编号</newspeciality>
<newclassID>班级编号</newclassID>
---------------------------------------------------------------
<roleList>
<roleNote>
<sysID>qqq</sysID>
<ID>序号</ID>
<roleID>rrriiiddd</roleID>
<roleName>eeeeee</roleName>
</roleNote>
</roleList>
---------------------------------------------------------------
<school>0</school><!--学校-->
<yuanxi>0</yuanxi><!--院系-->
<kaik>0</kaik><!--开课-->
<class>0</class><!--课程-->
<value>0</value><!--值-->
<cavalue>0</cavalue><!--差值-->
---------------------------------------------------------------
<year>学年</year>
<term>学期</term>
<YuanXi>院系名称</YuanXi>
<TecID>教师编号</TecID>
<TecName>教师姓名</TecName>
---------------------------------------------------------------以下是弹出时间脚本------------------------
<SCRIPT language="JavaScript1.2">
<xsl:comment>
<![CDATA[
var today=new Date(); //define a Date object to get current time
var desTxtId; //the very input type=text element to get date
var cal; //the calendar interface
var tbl;
var tblchild;
var obj;
var browserName=navigator.appName;
var isIE=browserName.indexOf("Microsoft")!=-1?true:false;
function montharr(m0,m1,m2,m3,m4,m5,m6,m7,m8,m9,m10,m11) //define an object includes month days
{
this[0]=m0;this[1]=m1;this[2]=m2;this[3]=m3;this[4]=m4;this[5]=m5;this[6]=m6;
this[7]=m7;this[8]=m8;this[9]=m9;this[10]=m10;this[11]=m11; }
function fillcalendar() // 'fill' data into the calendar
{
var monthDays=new montharr(31,28,31,30,31,30,31,31,30,31,30,31);
var monthNames=new Array("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月");
year=today.getFullYear();
if(((year%4==0)&&(year%100==0))||(year%400==0))monthDays[1]=29;
nDays=monthDays[today.getMonth()];
firstDay=today;
firstDay.setDate(1);
startDay=firstDay.getDay();
column=0;
tblchild=tbl.firstChild;
tblchild.childNodes[1].childNodes[2].innerHTML=year+"年"+monthNames[today.getMonth()]
for(var i=0;i<startDay;i++){tblchild.childNodes[3].childNodes[i].innerHTML=" ";column++;}
j=3;
var txt="";
for(var i=1;i<=nDays;i++)
{
tblchild.childNodes[j].childNodes[column].innerHTML=i;
column++;
if(column==7){j=j+1;column=0;}
}
if(column<7&&column!=0)
for(var i=column;i<7;i++)tblchild.childNodes[j].childNodes[i].innerHTML=" ";
}
function monthadd()
{
clearCalendar();
today.setMonth((today.getMonth()+1)%12);
if(today.getMonth()==0)today.setFullYear(today.getFullYear()+1);
fillcalendar();
}
function monthsub()
{
clearCalendar();
today.setMonth((today.getMonth()+11)%12);
if(today.getMonth()==11)today.setFullYear(today.getFullYear()-1);
fillcalendar();
}
function changeyear(yearValue)
{
if(1900>yearValue||yearValue>2999){alert("年份范围有误!");return;}
today.setFullYear(yearValue);
clearCalendar();
fillcalendar();
}
function changemonth(monthValue)
{
today.setMonth(monthValue-1);
clearCalendar();
fillcalendar();
}
function returndate(vday)
{
if(vday==" "){hidecal();return;}
if(vday!="")
{ month=today.getMonth()+1;
year=today.getFullYear();
desTxtId.value=year+"-"+month+"-"+vday+""; } //+vday+"日"
else desTxtId.value=""
hidecal();
}
function clearCalendar()
{
for(var i=3;i<tblchild.childNodes.length;i++)
for(var j=0;j<tblchild.childNodes[3].childNodes.length;j++)
tblchild.childNodes[i].childNodes[j].innerHTML="";
}
function buildtbl()
{
document.write("<div id='Calendar' style=/"display:none;position:absolute;width:220;background:#C5D3FE;;z-index:100/">");
document.write("<table id='calTbl' width='220' align='center' border='1' bordercolorlight='#000000' bordercolordark='#E1E9FF'>");
document.write("<tr>");
document.write("<td Author='rodger' align='center' colspan='5' valign='middle'>");
document.write("<select Author='rodger' size='1' onchange='changeyear(this.value)'>");
for(var i=1980;i<2022;i++)document.write("<option Author='rodger' value='"+i+"'>"+i+"</option>");
document.write("</select>年")
document.write("<select Author='rodger' size='1' onchange='changemonth(this.value)'>");
for(var i=1;i<=12;i++)document.write("<option Author='rodger' value='"+i+"'>"+i+"</option>");
document.write("</select>月</td>")
document.write("<td Author='rodger' align='center'><a href='javascript:void(null)' onclick='returndate(/"/")'><font face='Webdings' color='purple'>=</font></a></td>");
document.write("<td Author='rodger' align='center'><a href='javascript:void(null)' onclick='hidecal()'><font face='Webdings' color='purple''>r</font></a></td>");
document.write("</tr><tr>");
document.write("<td Author='rodger' align='center'><a Author='rodger' href='javascript:void(null)' onclick='changeyear(today.getFullYear()-1)'><font Author='rodger' face='Webdings'>7</font></a></th>");
document.write("<td Author='rodger' align='center'><a Author='rodger' href='javascript:void(null)'onclick='monthsub()'><font Author='rodger' face='Webdings'>3</font></a></th>");
document.write("<td Author='rodger' colspan='3' align='center' style='font-size:9pt;font-weight:bold;color:blue'> </th>");//第二行3
document.write("<td Author='rodger' align='center'><a href='javascript:void(null)' onclick='monthadd()'><font Author='rodger' face='Webdings'>4</font></a></th>");
document.write("<td Author='rodger' align='center'><a href='javascript:void(null)' onclick='changeyear(today.getFullYear()+1)'><font Author='rodger' face='Webdings'>8</font></a></th>");
document.write("</tr><tr>");
document.write("<td Author='rodger' align='center' style='font-size:9pt;color:blue;font-weight:bold' bgcolor='#E2F3C0'>日</th>");
document.write("<td Author='rodger' align='center' style='font-size:9pt;color:blue;font-weight:bold' bgcolor='#E2F3C0'>一</th>");
document.write("<td Author='rodger' align='center' style='font-size:9pt;color:blue;font-weight:bold' bgcolor='#E2F3C0'>二</th>");
document.write("<td Author='rodger' align='center' style='font-size:9pt;color:blue;font-weight:bold' bgcolor='#E2F3C0'>三</th>");
document.write("<td Author='rodger' align='center' style='font-size:9pt;color:blue;font-weight:bold' bgcolor='#E2F3C0'>四</th>");
document.write("<td Author='rodger' align='center' style='font-size:9pt;color:blue;font-weight:bold' bgcolor='#E2F3C0'>五</th>");
document.write("<td Author='rodger' align='center' style='font-size:9pt;color:blue;font-weight:bold' bgcolor='#E2F3C0'>六</th>");
document.write("</tr>");
for(var i=0;i<6;i++)
{
document.write("<tr>");
for(var j=0;j<7;j++)
{
if(j==0)varStyle="font-weight:bold;color:purple";
else if(j==6)varStyle="font-weight:bold;color:purple";
else varStyle="font-weight:bold;color:blue;";
document.write("<td Author='rodger' align='center' width='14%' style='"+varStyle+"' onmousedown=returndate(this.innerHTML) onmouseover=this.style.cursor='hand';this.style.backgroundColor='#E1E9FF' onmouseout=this.style.backgroundColor=''></td>");//鼠标点中的颜色
}
document.write("</tr>");
}
document.write("</table>");
document.write("</div> ");
cal=document.getElementById("Calendar");
tbl=document.getElementById("calTbl");
fillcalendar();
hidecal();
}
function hidecal(){ cal.style.display="none"; }
function showcal(obj)
{
desTxtId=obj;
cal.style.display="";
vtop=offsetTop(obj);
vheight=obj.offsetHeight;
vwidth=obj.offsetWidth;
vleft=offsetLeft(obj)+vwidth;
if(isIE)
{
if(vtop+cal.offsetHeight>document.body.scrollTop+document.body.clientHeight)
vtop=vtop+vheight-cal.offsetHeight;
if(vleft+cal.offsetWidth>document.body.scrollLeft+document.body.clientWidth)
vleft=offsetLeft(obj)-cal.offsetWidth;
cal.style.top=vtop;
cal.style.left=vleft;
}
else
{
if(vtop+cal.offsetHeight>window.innerHeight)
vtop=vtop+vheight-cal.offsetHeight;
if(vleft+cal.offsetWidth>window.innerWidth)
vleft=offsetLeft(obj)-cal.offsetWidth;
cal.style.top=vtop;
cal.style.left=vleft;
}
}
function offsetLeft(obj)
{
x = obj.offsetLeft;
for (objParent=obj.offsetParent;objParent;objParent=objParent.offsetParent)x+=objParent.offsetLeft;
return x;
}
function offsetTop(obj)
{
y = obj.offsetTop;
for(objParent=obj.offsetParent;objParent;objParent=objParent.offsetParent)y+=objParent.offsetTop;
return y;
}
function document.onclick()
{
with(window.event.srcElement)
{
if(getAttribute("Author")==null && tagName!="INPUT")
hidecal();
}
}
buildtbl();
]]>
</xsl:comment>
</SCRIPT>
-----------------------------------
<input type="text" name="StartTime" size="12" maxlength="20" readonly="" onclick="showcal(this)">
<xsl:attribute name="value">
<xsl:value-of select="beginTime"/>
</xsl:attribute>
</input>
---------------------------------------------------------------以上是弹出时间脚本------------------------
链接JS文件写法:
<script language="JavaScript" src="../../resources/javascript/sun.js" type="text/javascript"></script>
---------------------------------------------------------------------------------------------------------控制空格大小的写法
<span lang="zh-cn" style="font-size: 11px"> </span>
-------------------------------------------------------------------------------------
<span lang="zh-cn" style="font-size: 11px"> </span>
-----------------------------------
<span lang="zh-cn" style="font-size: 11px">     </span>
----------------------------------------------------《一个真实的列表页面》
<xsl:for-each select="XiList/XiNote">
<tr>
<td width="4%" style="border-style: solid; border-width: 1" bordercolor="#E2DADB" height="24" align="center">
<xsl:value-of select="ID" />
</td>
<td width="11%" style="border-style: solid; border-width: 1" bordercolor="#E2DADB" height="24" align="center">
<xsl:value-of select="department"/>
</td>
<td width="30%" style="border-style: solid; border-width: 1" bordercolor="#E2DADB" height="21" align="center">
<xsl:value-of select="content" />
</td>
<td width="4%" style="border-style: solid; border-width: 1" bordercolor="#E2DADB" height="21" align="center">
<a class="page" href="YM_DeptListAddEdit.do?ButtonName=EDIT&specialtyno={specialtyno}">编辑</a>
</td>
<td width="4%" style="border-style: solid; border-width: 1" bordercolor="#E2DADB" height="21" >
<a class="page" href="YM_DeptListDel.do?specialtyno={specialtyno}">删除</a>
</td>
</tr>
</xsl:for-each>
---------------------------------------------------------------分列表
<xsl:for-each select="specialtynoList/specialtynoNote">
<xsl:if test=" (position()-1) mod 3=0">
<tr><td></td></tr>
</xsl:if>
<td width="33%" style="border-style: solid; border-width: 3" bordercolor="#FFFFFF" height="24" align="center">
<a class="stu_company2" href="YM_ClassList.sea?specialtyno={specialtyno}"><xsl:value-of select="specialty" /></a>
</td>
</xsl:for-each>
------------tablebean----------tablebean-----------tablebean-----------tablebean--------tablebean-------------------------
<SCRIPT language="JavaScript1.2">
<xsl:comment>
<![CDATA[
function c(){
document.b1.action="ProWriteOrderSub.do"
document.b1.submit();
}
function b(){
document.b1.action="ProWriteAddSub.do"
document.b1.submit();
}
function a(){
document.b1.action="EquTypeModify.do"
document.b1.submit();
}
]]>
</xsl:comment>
</SCRIPT>
<xsl:comment>
<![CDATA[
function a(){
document.pipiwo.action="Pagination.do"
document.pipiwo.submit();
}
]]>
</xsl:comment>
</SCRIPT>
</head>
<body topmargin="0" leftmargin="0">
<form method="get" name="pipiwo">
<xsl:for-each select="tables/table">
<table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="27">
<tbody>
<tr>
<td width="100%" valign="top" height="25">
<xsl:if test="page/totalpage[.>'1']">
<input type="hidden" name="index" size="8">
<xsl:attribute name="value">
<xsl:value-of select="index"/>
</xsl:attribute>
</input>
</xsl:if>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; " width="100%" height="26">
<tbody>
<tr>
<xsl:for-each select="headpart/head">
<td width="6%" class="main-table-fun-top-th" style="height: 25; ">
<input type="hidden" name="id" size="8">
<xsl:attribute name="value">
<xsl:value-of select="id"/>
</xsl:attribute>
</input>
<xsl:if test="sort[.='-1']">
<a href="Sort.do?Type={id/@Type}&sortflag={sort}&index={../../index}&id={id}" class="page_top">
<xsl:value-of select="name"/>
<img border="0" src="../../resources/images/jiantou2.gif" width="7" height="4" />
</a>
</xsl:if>
<xsl:if test="sort[.='1']">
<a href="Sort.do?Type={id/@Type}&sortflag={sort}&index={../../index}&id={id}" class="page_top">
<xsl:value-of select="name"/>
<img border="0" src="../../resources/images/jiantou.gif" width="7" height="4" />
</a>
</xsl:if>
<xsl:if test="sort[.='0']">
<a href="Sort.do?Type={id/@Type}&sortflag={sort}&index={../../index}&id={id}" class="page_top">
<xsl:value-of select="name"/>
</a>
</xsl:if>
</td>
</xsl:for-each>
</tr>
<xsl:for-each select="contentpart/line">
<tr>
<xsl:for-each select="content">
<td width="6%" height="20" class="main-table-fun-top" style="color: #000000; background-color: #FFFFFF" nowrap="">
<xsl:variable name="var1" select="./@href"/>
<xsl:choose>
<xsl:when test="$var1!='' ">
<a class="stu_company" target="_parent" href="{./@href}">
<xsl:value-of select="."/>
</a>
</xsl:when>
<xsl:when test="$var1='' ">
<xsl:value-of select="."/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="."/>
</xsl:otherwise>
</xsl:choose>
</td>
</xsl:for-each>
</tr>
</xsl:for-each>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<xsl:if test="page/totalpage[.>'1']">
<table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" width="100%" >
<tbody>
<tr>
<td width="21%"></td>
<td width="41%"></td>
<td width="41%" align="right" nowrap="">
第<xsl:value-of select="page/currentpage"/>页,总<xsl:value-of select="page/totalpage"/>页( 共<xsl:value-of select="page/acountNote"/>条),到
<select name="pageNumber" onchange="a()">
<xsl:for-each select="LookPage/Page">
<xsl:if test="PageId/@selected[.='1']">
<option selected='selected'>
<xsl:attribute name="value">
<xsl:value-of select="PageId"/>
</xsl:attribute>
<xsl:value-of select="PageName"/>
</option>
</xsl:if>
<xsl:if test="PageId/@selected[.='0']">
<option>
<xsl:attribute name="value">
<xsl:value-of select="PageId"/>
</xsl:attribute>
<xsl:value-of select="PageName"/>
</option>
</xsl:if>
</xsl:for-each>
</select>页。
<xsl:if test="page/currentpage[.='1']">
<font color="#C0C0C0">首页</font>
</xsl:if>
<xsl:if test="page/currentpage[.>'1']">
<a href="Pagination.do?ButtonName=FirstPage&index={index}" class="page">首页</a>
</xsl:if>
|
<xsl:if test="page/currentpage[.='1']">
<font color="#C0C0C0">上一页</font>
</xsl:if>
<xsl:if test="page/currentpage[.>'1']">
<a href="Pagination.do?ButtonName=PerPage&index={index}" class="page">上一页</a>
</xsl:if>
<font color="#800000">||</font>
<xsl:variable name="var" select="page/currentpage"/>
<xsl:if test="page/totalpage[.=$var]">
<font color="#C0C0C0">下一页</font>
</xsl:if>
<xsl:if test="page/totalpage[.>$var]">
<a href="Pagination.do?ButtonName=NextPage&index={index}" class="page">下一页</a>
</xsl:if>
|
<xsl:if test="page/totalpage[.=$var]">
<font color="#C0C0C0">尾页</font>
</xsl:if>
<xsl:if test="page/totalpage[.>$var]"> <a href="Pagination.do?ButtonName=EndPage&index={index}" class="page">尾页</a>
</xsl:if>
</td>
</tr>
</tbody>
</table>
</xsl:if>
</xsl:for-each>
------------tablebean----------tablebean-----------tablebean-----------tablebean--------tablebean------------------------- <input onclick="CheckAll();" type="checkbox" value="Check All boxes" name="allbox">
<xsl:attribute name="value">
<xsl:value-of select="id" />
</xsl:attribute>
</input>
-------------------------------------------------
<xsl:variable name="var1" select="./hf"/>
<input type="checkbox" name="studentid" value="ON">
<xsl:attribute name="value">
<xsl:value-of select="var1" />
</xsl:attribute>
</input>
---------------------------------------------控制弹出窗口,等等
<script language="JavaScript">
<!--
self.moveTo(1,1)
self.resizeTo(200.availWidth,200.availHeight)
//-->
</script>
-----------------------------------
<script language="JavaScript">
<!--
self.moveTo(1,1)
self.resizeTo(screen.availWidth,screen.availHeight)
//-->
</script>
----------------------------------
<script>
var tmp=window.open("about:blank","",
"fullscreen=1")
tmp.moveTo(100,100)
tmp.resizeTo(600,400)
tmp.focus()
tmp.location="http://要打开的窗口"
</script>
--------------------------------------------------------
<!-- 弹出窗口开始 -->
<!-- script language="javascript" -->
<!--
function openwin(page)
{
myWindow = window.open(page,'_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=200,left=200,width=420,height=500');
}
openwin("popup.htm");
-->
<!-- /script -->
<!-- 弹出窗口结束 -->
----------------------------------HTML头元素---------------------------------------------
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Description" content="我365网址 网址大全 网址之家">
<meta name="Keywords" content="我365网址 网址大全 网址之家">
<meta name="GENERaTOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
----------------------------------------------------------------------------------------
<meta name="Description" content="海恒达远 软件工厂 J2EE开发">
<meta name="Keywords" content="海恒达远 软件工厂 J2EE开发">
----------------------------------------------------------------------------------------
有用、常用的HTML代码
最新推荐文章于 2025-01-19 19:22:03 发布