有用、常用的HTML代码

----------------------------------------------------------------------------------------------------------------- 各种字符:⊙●○①⊕◎Θ⊙¤㊣★☆♀◆◇◣◢◥▲▼△▽⊿◤ ◥ ▂ ▃ ▄ ▅ ▆ ▇ █ █ ■ ▓ 回 □ 〓≡ ╝╚╔ ╗╬ ═ ╓ ╩ ┠ ┨┯ ┷┏ ┓┗ ┛┳⊥﹃﹄┌ ┐└ ┘∟「」↑↓→←↘↙♀♂┇┅ ﹉﹊﹍﹎╭ ╮╰ ╯ *^_^* ^*^ ^-^ ^_^ ^︵^ ∵∴‖︱ ︳︴﹏﹋﹌︵︶︹︺ 【】〖〗@﹕﹗// " _ < > `,·。≈{}~ ~() _ -『』√ $ @ * & # ※ 卐 々∞Ψ ∪∩∈∏ の ℡ ぁ §∮〝〞ミ灬ξ№∑⌒ξζω*ㄨ ≮≯ +-×÷﹢﹣±/=∫∮∝ ∞ ∧∨ ∑ ∏ ∥∠ ≌ ∽ ≦ ≧ ≒﹤﹥じ☆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" οnclick="self.location.href='SysLeadManagePage.sea'" class="ts"> ----------------------------------------------------------------------------------------------------------------- 参数:TUANWEI-LIU.do?nameCo={nameCo}&amp;&amp;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" οnlοad="movetocenter('help.htm','160','30')"> ----------------------------------------------------------------------------------------------------------------- 单元格-对齐:<td width="14%" align="right" nowrap="" > ----------------------------------------------------------------------------------------------------------------- 只准数字输入的文本框: <οnkeypress="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     οnclick="b()" ---------参数: ?No={sysid}&amp;studentid={studentid}--------------------------------------------- ---------参数:ST_OccupationIntentionContentEdit.do?studentid={studentid}&amp;ButtonName=EDIT ---------参数:ST_ProjectsRecordListAddEdit.do?studentid={studentid}&amp;ButtonName=ADD ----------------------------------------------------------------------------------------------------------------- 空格:&#160;     尖括号:&gt;    htmp下的空格: &amp; ----------------------------------------------------------------------------------------------------------------- <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"/>&gt;<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" οnkeypress="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> ------------------------------- οnclick="b()"    οnchange="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> ---------------------------------------------- &amp;PlaceOneMessage={PlaceOneMessage}&amp;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}&amp;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}&amp;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" οnclick="b()" /> ----------------------------------------- <input type="submit" value="删除" name="B2" class="19" οnclick="b()" /> -----------------------------------------------------------------------------链接提交表单 <form style="BACKGROUND-COLOR: #000000" name="RedF" action method="post">  <a οnclick="document.RedF.submit()" href="#">           <u><font color="#800080">登录</font></u></a>  <a οnclick="document.RedF.reset()" href="#">           <u><font color="#800080">清空</font></u></a> ----------------------------------------------------------------------------- <select name="pageNumber" οnchange="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}&amp;id={.}"> <xsl:value-of select="."/> </a> </xsl:when> <xsl:when test="../id/@Type[.='6']"> <a class="zi" href="Difference.do?index={../../index}&amp;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="&nbsp;";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="&nbsp;";    }       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=="&nbsp;"){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' οnchange='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' οnchange='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)' οnclick='returndate(/"/")'><font face='Webdings' color='purple'>=</font></a></td>");       document.write("<td Author='rodger' align='center'><a href='javascript:void(null)' οnclick='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)' οnclick='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)'οnclick='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'>&nbsp;</th>");//第二行3       document.write("<td Author='rodger' align='center'><a href='javascript:void(null)' οnclick='monthadd()'><font Author='rodger' face='Webdings'>4</font></a></th>");       document.write("<td Author='rodger' align='center'><a href='javascript:void(null)' οnclick='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+"' οnmοusedοwn=returndate(this.innerHTML) οnmοuseοver=this.style.cursor='hand';this.style.backgroundColor='#E1E9FF' οnmοuseοut=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="" οnclick="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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> ------------------------------------------------------------------------------------- <span lang="zh-cn"  style="font-size: 11px">&#160;</span> ----------------------------------- <span lang="zh-cn" style="font-size: 11px">&#160;&#160;&#160;&#160;&#160;</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&amp;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}&amp;sortflag={sort}&amp;index={../../index}&amp;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}&amp;sortflag={sort}&amp;index={../../index}&amp;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}&amp;sortflag={sort}&amp;index={../../index}&amp;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" οnchange="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&amp;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&amp;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&amp;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&amp;index={index}" class="page">尾页</a>                </xsl:if>                               </td>               </tr>              </tbody>           </table>     </xsl:if> </xsl:for-each> ------------tablebean----------tablebean-----------tablebean-----------tablebean--------tablebean-------------------------      <input οnclick="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开发"> ----------------------------------------------------------------------------------------
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值