易截截图软件、单文件、免安装、纯绿色、仅160KB

JavaScript动态添加和删除行

//添加按钮定义中的按钮
    function addBtnRow() {      
        var table = document.getElementById('btnList');
        var rownum = table.rows.length;
        var newrow = table.insertRow(rownum);
        var newcell = newrow.insertCell();
        newcell.innerHTML = "<input name='checkbox' type='radio' value='1'><input name='flags' type='hidden' value='1' ><input name='confIds' value='' type='hidden' />&nbsp;"+rownum;
        newcell = newrow.insertCell();
        newcell.innerHTML = "<input name='bvalue' value='' type='text' style='width:100%' >";
        newcell = newrow.insertCell();
        newcell.innerHTML = "<input name='bevent' value='' type='text' style='width:500px' ondblclick=openWin(this,'395','200'); >";
        newrow.cells[1].children[0].focus();
    }
   
    //删除按钮定义中的按钮
    function delBtnRow(){
         var table = document.getElementById("btnList");
         for(var i=1; i<table.rows.length; i++){
             if(table.rows[i].cells[0].children[0].checked){
                 if(table.rows[i].cells[0].children[2].value!=""){
                     document.forms[0].delConfId.value+=table.rows[i].cells[0].children[2].value+"@"


相关文档:

[Javascript] 对联广告代码模板

以前在公司负责广告这块,曾经研究过在Windows/Macintosh下的各种浏览器中的js运行效果,而总结出一些兼容函数。
用在公司网站上之后,没想到居然有幸被用户们拿去当成了范例(现在在网上搜 MK_pageX 应该能找到不少,其中 MK_ 是我的特征前缀,就是 Moky 的缩写,当时是为了避免和原有函数冲突而加的),哈哈~
可能和我 ......

JavaScript显示当前时间

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>系统时间的显示</title>
<script type="text/javascript">
    function getDate() {
       window.setInterval("setDate()", 1000); //循环调用 ......

javascript 常用经典2

43、JavaScript主页弹出窗口技巧
窗口中间弹出
<script>
window.open("http://www.cctv.com","","width=400,height=240,top="+(screen.availHeight-240)/2+",left="+(screen.availWidth-400)/2);
</script>
============
<html>
<head>
<script language="LiveScript">
fu ......

如何用Javascript检查Adobe PDF插件是否安装

用Javascript检查Adobe PDF插件是否安装的代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号