
html> head> title> /title> script> function show(obj){ var id = obj.id; if(id=="s1"){ if(obj.value=="1"){ document.getElementById("t1").style.display="none"; document.getElementById("s2").style.display="block"; }else if(obj.value=="2"){ document.getElementById("t1").style.display="block"; document.getElementById("s2").style.display="none"; }else { document.getElementById("t1").sty...
by sss0213 - 网络技术文档中心 - 2009-08-06 08:28:09 阅读(1172) 回复(0)
Untitled Document function numericCheck(){ nr1=document.myform.content.value; flg=0; str=""; spc="" arw=""; for (var i=0;i-1) { str+="和空格"; } alert("这里只接受数字,发现" +flg+"个不可接受的字符:\n"+str); return false; } } 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/29637/showart_227027.html
function dropTrBgColor()//清空所有行背景色 { var trs = document.getElementsByTagName("tr") ; for(var i=0;i 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/49593/showart_1915251.html
<script language=javascript> <!-- function Addme(){ url = "http://www.this.net";你自己的主页地址 title = "Your Site Name"; //你自己的主页名称 window.external.AddFavorite(url,title); --> </script> <a href="javascript:Addme()">将本站添入收藏夹</a> 以下代码同时适用于IE和firefox的js脚本 function addBookmark(title,url) { if (window.sidebar) { window.sidebar.addPanel(title, url,""); } e...
script language="javascript"> if(top==self){ thisHREF = document.location.href; splitHPage = thisHREF.split( "/" ); thisHPage = splitHPage[ splitHPage.length-1 ]; window.location.href="index.php?url="+thisHPage; } /script> 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/2326/showart_277325.html
问题描述: 1、有一个元素节点A是通过document.createElement创建 2、又通过A.cloneNode(true)方法复制出节点B 3、现在想删除节点B该怎么办? 情况分析: 我已经试过.removeChild这种父节点删子节点方法,不管用。 好像是因为手册上这句话:cloneNode()返回的节点不属于文档树,它的 parentNode 属性为 null。 特殊说明: 不知为何,FireFox中可以正常删除,但在IE中不起作用。
方法一: html> head> title>添加附件/title> script language=JavaScript> function fAddAttach() { var gAttchHTML=''; var Attach=document.getElementById("dvReadAttach"); var spnList=Attach.getElementsByTagName("SPAN"); var spn=document.createElement("DIV"); spn.innerHTML=gAttchHTML; spn.childNodes[0].name="attachfile[]" + spnList.length; Attach.appendChild(spn); //增加gAttc...
valueInt('suppliers_lease_orders_id'), null, 'id="batch' . $Qcustomers->valueInt('suppliers_lease_orders_id') . '"'); ?> //没条记录后面的多选框,值放在batch[] get('icon_trash') . '" />'; ?> //删除按钮的url //点击这个多选框会选中本页记录所有的多选框 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/41952/showart_687862.html
/****打开页面时以窗口方式打开 function urll(u) { window.open(u,"","toolbar=0,top=50,left=130,location=0,status=0,menubar=0,scrollbars=1,resizable=0,height=450,width=510") } //--> ****/ 查看详情 //计算页面执行时间 ?> 退出时效果 控制面板帮助会员日历查看新帖 退出 /*执行此即可看到*/ var sp_isRefash = false; function window_onbeforeunload() { if(!sp_isRefash) { var...