html增行
<script language="javascript">
function newRow()
{
var tbl = document.all("mytbl");
var row = tbl.insertRow(2);
for (var i=0; i < tbl.rows[1].cells.length; i++)
{
var cell = row.insertCell();
cell.innerHTML = "<b>" + ((i+1)*10) + "</b>";
}
}
</script>
<table width="100%" align="center" id="mytbl" border="1">
<form action = "/exportcreate_s.jsp" method = "post" name = "selectuser" >
<tr>
<td colspan="12" align="right" colspan="2" id="footer" align="center">
<input type = button name = "add" value = "增行" id="button" onclick="newRow()">
</td>
</tr>
<tr>
<td>项目编码</td>
<td>收费项目名称</td>
<td>收费项目别名</td>
<
相关文档:
有时页面需要获得用户浏览器的高度才能确定内容显示在哪里,代码
<div style="position:absolute; left:0; top:expression(document.body.clientHeight/2-document.body.clientHeight/4)">
</div>
中,expression(document.body.clientHeight/2)即为获得浏览器高度再除以2 ......
最近研究PHP的一些开发技术,发现PHP有很多ASP所没有的优秀功能,可以完成一些以前无法完成的功能,例如动态生成HTML静态页面,以减少服务器CPU的负载,提高用户访问的速度。
我们知道,PHP读取MYSQL动态显示,在访问量大的情况下,会有很多性能问题,如果租用别人的虚拟主机,则会因为CPU消耗过多而被限制CPU,导致网 ......
//截取部分内容方法
public static string strvalue(string value, int length)
{
string strValue = NoHTML(value);// 去除HTML标记
&nb ......
insertAtCurson 函数代两参数分别为对象和输入的字符
function insertAtCursor(myField, myValue)
{
if (document.selection)
{
&nb ......
HTML 5——下一代web开发标准
HTML5看来将成为主流,浏览器战争乃至整个互联网的发展也将围绕这一点展开。而Flash、Silverlight和JavaFX等等RIA技术,将面临严峻的生存挑战
参考51cto
http://developer.51cto.com/art/200907/133407.htm ......