<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0">
<channel>
<title>深山工作室 https://www.qwbm.com【表单特效】</title>
<link>https://www.qwbm.com/news.asp?id=33</link>
<description>表单特效 https://www.qwbm.com</description>
<category>表单特效</category>
<language>zh-cn</language>
<docs>https://www.qwbm.com/rss.asp</docs>
<generator>https://www.qwbm.com</generator>
<webMaster>565449214@qq.com</webMaster>
<managingEditor>565449214@qq.com</managingEditor>
<pubDate>2007-11-21 下午 23:11:35</pubDate>
<lastBuildDate>2026/5/3 6:17:30</lastBuildDate>
<ttl>20</ttl> 
<copyright>Copyright 2026 深山工作室 https://www.qwbm.com</copyright>
<item>
<guid>881</guid>
<title>input文本输入框只能输入数字或字母或汉字等</title>
<link>https://www.qwbm.com/new.asp?id=881</link>
<description><![CDATA[1.文本框只能输入数字代码(小数点也不能输入)
&lt;input onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"&gt;

2.只能输入数字,能输小数点.
&lt;input onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"&gt;
&lt;input name="txt1" onchange="if(/\D/.test(this.value)){alert('只能输入数字');this.value='';}"&gt;

3.数字和小数点方法二
&lt;input type="text" t_value="" o_value="" onkeypress="if(!this.value.match(/^[\+\-]?\d*?\.?\d*?$/))this.value=t]]></description>
<author></author>
<source>https://www.qwbm.com/new.asp?id=881</source>
<category>表单特效</category>
<pubDate>2020/8/17 21:14:17</pubDate>
</item>
<item>
<guid>806</guid>
<title>用于深山在线投票的一个javascript统计checkbox现在选中的个数一边点复选框一边验证并计算现在选了多少个复选框</title>
<link>https://www.qwbm.com/new.asp?id=806</link>
<description><![CDATA[

以下为详细代码
用在深山在线投票系统里面的用javascript统计checkbox选中个数

&lt;form method="post" action=""&gt;
&lt;label for="id[]100"&gt;&lt;input type="checkbox" name="id[]" id="id[]100" onClick="docheck(this,'','','','')" value="100" /&gt;&lt;span&gt;选择&lt;/span&gt;&lt;/label&gt;
&lt;label for="id[]99"&gt;&lt;input type="checkbox" name="id[]" id="id[]99" onClick="docheck(this,'','','','')" value="99" /&gt;&lt;span&gt;选择&lt;/span&gt;&lt;/label&gt;
&lt;label for="id[]98"&gt;&lt;input type="checkbox" name="id[]]]></description>
<author>深山工作室</author>
<source>https://www.qwbm.com/new.asp?id=806</source>
<category>表单特效</category>
<pubDate>2014/9/20 22:17:36</pubDate>
</item>
<item>
<guid>802</guid>
<title>利用javascript简短功能就可以检查form表单中的元素是否已经填写</title>
<link>https://www.qwbm.com/new.asp?id=802</link>
<description><![CDATA[

以下为详细代码

利用javascript检查form表单中的元素是否已经全部填写
&lt;form id="qwbmform" name="qwbmform" method="post" action="" onSubmit="return passcheack('qwbmform');"&gt;
&lt;table cellpadding="0" cellspacing="1" class="xtable" id="ontable"&gt;
&lt;tr&gt;&lt;td class="xtdleft" width="100"&gt;字段1&lt;/td&gt;&lt;td class="xtdright"&gt;&lt;input name="re_pass1" type="text" size="30" maxlength="50" class="flinput1" id="re_pass1" /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="xtdleft"&gt;字段2&lt;/td&gt;&lt;]]></description>
<author>网络</author>
<source>https://www.qwbm.com/new.asp?id=802</source>
<category>表单特效</category>
<pubDate>2014/9/15 16:09:32</pubDate>
</item>
<item>
<guid>724</guid>
<title>javascript日期验证比较</title>
<link>https://www.qwbm.com/new.asp?id=724</link>
<description><![CDATA[
    
    以下为详细代码
    &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;&gt;
    &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
    &lt;head&gt;
    &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
    &lt;title&gt;javascript日期比较&lt;/title&gt;
    &lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
    function check(formObj) {
   ]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=724</source>
<category>表单特效</category>
<pubDate>2012/8/14 9:46:58</pubDate>
</item>
<item>
<guid>662</guid>
<title>javascript 根据汉字拼音首字母快速定位下拉列表</title>
<link>https://www.qwbm.com/new.asp?id=662</link>
<description><![CDATA[
    
    以下为详细代码
    


JS根据汉字拼音首字母快速定位下拉列表.htm

// 获取拼音首字母
function getPinYin(c) {
execScript("tmp=asc(\""+c+"\")", "vbscript");
tmp = 65536 + tmp;
if(tmp>=45217 && tmp=45253 && tmp=45761 && tmp=46318 && tmp=46826 && tmp=47010 && tmp=47297 && tmp=47614 && tmp=48119 && tmp=49062 && tmp=49324 && tmp=49896 && tmp=50371 && tmp=50614 && tmp=50622 && tmp=50906 && tmp=51387 && tmp=51446 && tmp=52218 && tmp=52698 && tmp=52980 && tmp=53689 && tmp=54481 && tmp 122
* A-Z: 65 -> 90
* 0-9: 48]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=662</source>
<category>表单特效</category>
<pubDate>2011/1/17 15:42:22</pubDate>
</item>
<item>
<guid>661</guid>
<title>javascript取汉字拼音首字母缩写程序</title>
<link>https://www.qwbm.com/new.asp?id=661</link>
<description><![CDATA[
    
    以下为详细代码
    




&nbsp;" + arrRslt.join("&nbsp;") +
"隐藏";
var oDiv = getPosition(document.getElementById("txtChinese"));
div.style.top = oDiv.top + oDiv.height;
div.style.left = oDiv.left ;
div.style.width = oDiv.width ;
var divs = div.getElementsByTagName("div");
for(var i=0;i


table,td{border:1px solid #CC6600;border-collapse:collapse;font-size:12px;}
#tit{ font-size:24px; }
#divResult{ border:1px solid #CC6600; font-size:14px; display:none; letter-spacing : 2px ]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=661</source>
<category>表单特效</category>
<pubDate>2011/1/14 17:03:42</pubDate>
</item>
<item>
<guid>626</guid>
<title>Javascript JS 限制复选框的选择个数(3)</title>
<link>https://www.qwbm.com/new.asp?id=626</link>
<description><![CDATA[

以下为详细代码
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;script language="Javascript"&gt;
&lt;!--
var checkboxname = "checkbox"; //复选框名称的前缀，所有复选框的名称要统一，用序号区分。
var iMaxCheckbox = 6; //复选框的个数，本例有6个，可根据需要变动。
var iMaxSelected = 4; //设置最大允许选择的数量，可根据需要变动。
var iNumChecked = 0; //声明一个变量，用于存放已选的数量。
function docheck(ctrl) { //控制选择数量的函数。
var nowCtr]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=626</source>
<category>表单特效</category>
<pubDate>2010/5/7 14:32:57</pubDate>
</item>
<item>
<guid>625</guid>
<title>Javascript JS 限制复选框的选择个数(2)</title>
<link>https://www.qwbm.com/new.asp?id=625</link>
<description><![CDATA[

以下为详细代码
&lt;script   language="javascript"&gt;   
function   check(str,num)   
{//选项框名字要相同.   
      var   checkednum=0;   
      var   a   =   document.getElementsByName(str);   
      var   n   =   a.length;   
      for   (var   i=0;   i&lt;n;   i++)   
      if(a[i].checked){   
        checkednum++;   
        }   
        if(checkednum&gt;num){   
alert("您最多只能选2个选项！");
return   false;   
        }else{   
        return   true;   
        }   
}   
&lt;/script&gt;   ]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=625</source>
<category>表单特效</category>
<pubDate>2010/5/7 14:29:22</pubDate>
</item>
<item>
<guid>608</guid>
<title>改善用户体验之checkbox表单(最多可以选择三个)</title>
<link>https://www.qwbm.com/new.asp?id=608</link>
<description><![CDATA[

以下为详细代码
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;style type="text/css"&gt;
body{ margin:0px; padding:16px;}
form{ margin:0px; padding:0px;}
dl{ margin:0px; padding:0px;}
dt{ margin:0px; padding:26px 0px 6px; font-size:14px; font-weight:bold;}
dd{ margin:0p]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=608</source>
<category>表单特效</category>
<pubDate>2010/2/9 14:44:31</pubDate>
</item>
<item>
<guid>601</guid>
<title>点击复选框自动写入textarea,去掉自动删掉,适合做(网站来源,网站作者)</title>
<link>https://www.qwbm.com/new.asp?id=601</link>
<description><![CDATA[

以下为详细代码
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;点击复选框自动写入textarea,去掉自动删掉,适合做(网站来源,网站作者)&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=gb2312"&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;SCRIPT LANGUAGE="JavaScript"&gt;
&lt;!--
function keyselection(){
	var oform = document.form1;
	var len = oform.elements.length;
	var allstr="";
	for( i=0; i&lt;len; i++){
		if(oform.elements[i].checked){
			s = oform.elements[i].value;
			if(allstr!="")
			{
				//allst]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=601</source>
<category>表单特效</category>
<pubDate>2010/2/7 20:46:20</pubDate>
</item>
<item>
<guid>596</guid>
<title>实时输入数字自动转换为货币形式并计算</title>
<link>https://www.qwbm.com/new.asp?id=596</link>
<description><![CDATA[

以下为详细代码
&lt;script&gt;
function checkInt(o){
  theV=isNaN(parseInt(o.value))?0:parseInt(o.value);
  if(theV!=o.value){o.value=theV;}
  txtTotal.value=txtAmount.value*txtPrice.value;
}
function checkP(o){
  theV=isNaN(parseFloat(o.value))?0:parseFloat(o.value);
  theV=parseInt(theV*100)/100;
  if(theV!=o.value){
    theV=(theV*100).toString();
    theV=theV.substring(0,theV.length-2)+"."+theV.substring(theV.length-2,theV.length)
    o.value=theV;
  }
  txtTotal.value=txtAmount.]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=596</source>
<category>表单特效</category>
<pubDate>2010/1/7 15:49:32</pubDate>
</item>
<item>
<guid>593</guid>
<title>一个select表单移处数据的效果，非常好用。</title>
<link>https://www.qwbm.com/new.asp?id=593</link>
<description><![CDATA[

以下为详细代码
&lt;script language="javascript"&gt;
/*
*email:yaqy@qq.com
*url: http://hi.baidu.com/tangtou
*/
function $(str){
    return document.getElementById(str);
}
function removeOption(select,index)
{
    $(select).options[index]=null;
    //$(select).remove(index);
}

function appendOptionLast(select,text,value)
{
var elOptNew = document.createElement('option');
elOptNew.text = text;
elOptNew.value =value;
var elSel = document.getElementById(select);

try {
    elSel]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=593</source>
<category>表单特效</category>
<pubDate>2009/12/22 14:07:45</pubDate>
</item>
<item>
<guid>591</guid>
<title>用户注册时的密码强度提示</title>
<link>https://www.qwbm.com/new.asp?id=591</link>
<description><![CDATA[&nbsp;


以下为详细代码
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;用户注册时的密码强度提示 &lt;/title&gt;
&lt;style type="text/css"&gt;
body{
	font-size:12px;
	font-family: Arial, Helvetica, sans-serif;
	margin:0;
}
form{
	margin:2em;
}
#chkResult{margin-left:53px;height:15px;}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form name="form1"&gt;
	&lt;label for="pwd"&gt;用户密码&lt;/label&gt;
	&lt;input type="password" name="]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=591</source>
<category>表单特效</category>
<pubDate>2009/12/22 14:07:44</pubDate>
</item>
<item>
<guid>590</guid>
<title>判断用户注册密码强度的JS代码</title>
<link>https://www.qwbm.com/new.asp?id=590</link>
<description><![CDATA[

以下为详细代码
判断用户注册密码强度的JS代码 

&lt;script language=javascript&gt;  
//CharMode函数
//source:www.web2bar.cn  
//测试某个字符是属于哪一类.  
function CharMode(iN){  
if (iN&gt;=48 &amp;&amp; iN &lt;=57) //数字  
return 1;  
if (iN&gt;=65 &amp;&amp; iN &lt;=90) //大写字母  
return 2;  
if (iN&gt;=97 &amp;&amp; iN &lt;=122) //小写  
return 4;  
else  
return 8; //特殊字符  
}  
//bitTotal函数  
//计算出当前密码当中一共有多少种模式  
function bitTotal(num){  
modes=0;  
for (i=0;i&lt;4;i++){  
if (num &amp; 1) modes++;  
n]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=590</source>
<category>表单特效</category>
<pubDate>2009/12/22 14:07:44</pubDate>
</item>
<item>
<guid>584</guid>
<title>JS自动格式化输入的数字/千位分隔符</title>
<link>https://www.qwbm.com/new.asp?id=584</link>
<description><![CDATA[

以下为详细代码
&lt;script&gt;
function cc(s){
        if(/[^0-9\.]/.test(s)) return "invalid value";
        s=s.replace(/^(\d*)$/,"$1.");
        s=(s+"00").replace(/(\d*\.\d\d)\d*/,"$1");
        s=s.replace(".",",");
        var re=/(\d)(\d{3},)/;
        while(re.test(s))
                s=s.replace(re,"$1,$2");
        s=s.replace(/,(\d\d)$/,".$1");
        return "￥" + s.replace(/^\./,"0.")
        }
&lt;/script&gt;
&lt;input onchange="this.value=cc(this.value)"&gt;
JS自动格式化输入的数]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=584</source>
<category>表单特效</category>
<pubDate>2009/12/22 14:07:41</pubDate>
</item>
<item>
<guid>583</guid>
<title>购物网上图片放大效果</title>
<link>https://www.qwbm.com/new.asp?id=583</link>
<description><![CDATA[

以下为详细代码
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=gb2312" /&gt;
&lt;title&gt;购物网上图片放大效果&lt;/title&gt;
&lt;style type="text/css"&gt;
#magnifier{
 width:342px;
 height:420px;
 position:absolute;
 top:100px;
 left:250px;
 font-size:0;
 border:1px solid #000;
}
#img{
 wi]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=583</source>
<category>表单特效</category>
<pubDate>2009/12/22 14:07:41</pubDate>
</item>
<item>
<guid>574</guid>
<title>网上购物车购物数量加减效果</title>
<link>https://www.qwbm.com/new.asp?id=574</link>
<description><![CDATA[

以下为详细代码
网上购物车购物数量加减效果
&lt;script&gt;
function $(e){
return document.getElementById(e);
}
function abdc(){
	var sl=$('shuliang').value;
		sl=parseInt(sl)+1;
		$('shuliang').value=sl;
		$('ccc').innerHTML=sl*150;
}
function abdce(){
	var sl=$('shuliang').value;
		if (sl&gt;0){
			sl=parseInt(sl)-1;
		}
		$('shuliang').value=sl;
		$('ccc').innerHTML=sl*150;
}
&lt;/script&gt;
&lt;a href="javascript:abdce();"&gt;-&lt;/a&gt;
&lt;input id="shuliang" value="1" /&gt;
&lt;a href]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=574</source>
<category>表单特效</category>
<pubDate>2009/12/22 14:07:34</pubDate>
</item>
<item>
<guid>534</guid>
<title>Javascript输入汉字自动转换为首字母的拼音码</title>
<link>https://www.qwbm.com/new.asp?id=534</link>
<description><![CDATA[

以下为详细代码
&lt;script language="javascript" type="text/javascript"&gt; 
function getPYCode(str) {
    var result = "";
    for (var i = 0; i &lt; str.length; i++) {
        result += getPY(str.charAt(i).toString())
    }
    document.getElementById("lblResult").innerHTML = result
}
function getPY(s) {
    if (s != "") {
        execScript("tmp=asc(\"" + s + "\")", "vbscript");
        tmp = 65536 + tmp;
        var py = "";
        if (tmp &gt;= 45217 &amp;&amp; tmp &lt;= 45252) {]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=534</source>
<category>表单特效</category>
<pubDate>2009/8/28 8:47:05</pubDate>
</item>
<item>
<guid>533</guid>
<title>JavaScript实现把汉字转换为拼音</title>
<link>https://www.qwbm.com/new.asp?id=533</link>
<description><![CDATA[

以下为详细代码
&lt;script language=vbscript&gt;
function vbChr(c) 
vbChr = chr(c) 
end function

function vbAsc(n) 
vbAsc = asc(n) 
end function 
&lt;/script&gt;

&lt;script language=javascript&gt;
var py1=new Array(20319,
20317,
20304,
20295,
20292,
20283,
20265,
20257,
20242,
20230,
20051,
20036,
20032,
20026,
20002,
19990,
19986,
19982,
19976,
19805,
19784,
19775,
19774,
19763,
19756,
19751,
19746,
19741,
19739,
19728,
19725,
19715,
19540,
19531,
195]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=533</source>
<category>表单特效</category>
<pubDate>2009/8/28 8:40:04</pubDate>
</item>
<item>
<guid>532</guid>
<title>javascript根据内容转换为拼音</title>
<link>https://www.qwbm.com/new.asp?id=532</link>
<description><![CDATA[

以下为详细代码
&lt;script type="text/javascript"&gt;
//作者：mfkiqpl
//首发：http://www.im286.com
var pinyin={
        mfkdb:[
['A','阿吖嗄腌锕'],
['Ai','埃挨哎唉哀皑癌蔼矮艾碍爱隘捱嗳嗌嫒瑷暧砹锿霭'],
['An','鞍氨安俺按暗岸胺案谙埯揞庵桉铵鹌黯'],
['Ang','肮昂盎'],
['Ao','凹敖熬翱袄傲奥懊澳坳嗷岙廒遨媪骜獒聱螯鏊鳌鏖'],
['Ba','芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸茇菝岜灞钯粑鲅魃'],
['Bai','白柏百摆佰败拜稗捭掰'],
['Ban','斑班搬扳般颁板版扮拌伴瓣半办绊阪坂钣瘢癍舨'],
['Bang','邦帮梆榜膀绑棒磅镑傍谤蒡浜'],
['Beng','蚌崩绷甭泵蹦迸嘣甏'],
['Bao','苞胞包褒薄雹保堡饱宝抱报暴豹鲍爆曝勹葆孢煲鸨褓趵龅'],
['Bo','剥玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳亳啵饽檗擘礴钹鹁簸跛踣'],
['Bei','杯碑悲卑北辈背贝钡倍狈备惫]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=532</source>
<category>表单特效</category>
<pubDate>2009/8/28 8:36:53</pubDate>
</item>
<item>
<guid>483</guid>
<title>JavaScript实现文本框提示效果</title>
<link>https://www.qwbm.com/new.asp?id=483</link>
<description><![CDATA[

以下为详细代码
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;

&lt;head&gt;
   &lt;title&gt;JavaScript实现文本框提示效果&lt;/title&gt;
   &lt;style type="text/css"&gt;
   *{
   margin:0px;padding:0px;font-size:12px;
   }
     input{
       width:100px;height:20px;border:1px solid #ccc;
     }

   &lt;/style&gt;
&lt;/head&gt;

&lt;]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=483</source>
<category>表单特效</category>
<pubDate>2009/6/8 23:04:50</pubDate>
</item>
<item>
<guid>480</guid>
<title>计算文本框字节数</title>
<link>https://www.qwbm.com/new.asp?id=480</link>
<description><![CDATA[


以下为详细代码
&lt;script&gt;
//计算|文本框|字节数


function passreg(str,strname){
 
 var pwdvalue = document.getElementById(str).value;
 var infvalue = document.getElementById(strname);
 
 if (pwdvalue.length &lt; 5 ){ 
  infvalue.innerHTML = "密码不能少于 5 位";
  infvalue.className = "error";
  }
 if (pwdvalue.length &gt; 4 ){ 
  infvalue.innerHTML = "密码正确";
  infvalue.className = "right";
  }
}

function lents(){
 
 var lentente = document.getElementById('content').value.replace(/ /g,]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=480</source>
<category>表单特效</category>
<pubDate>2009/6/7 22:12:39</pubDate>
</item>
<item>
<guid>456</guid>
<title>自适应高度textarea(文本框)</title>
<link>https://www.qwbm.com/new.asp?id=456</link>
<description><![CDATA[
以下为详细代码
自适应高度textarea(文本框)
&lt;!--textarea自适应高度--&gt;
&lt;h3&gt;textarea自适应高度&lt;/h3&gt;
&lt;textarea style='border: 1px solid #94BBE2;width:100%;height:200px;' rows=15 onpropertychange='this.style.posHeight=this.scrollHeight' id=textarea onfocus='textarea.style.posHeight=this.scrollHeight'&gt;
&lt;br&gt;
&lt;Br&gt;
&lt;/textarea&gt;


 
 
 
 
 
 
 
 ]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=456</source>
<category>表单特效</category>
<pubDate>2009/5/5 22:14:09</pubDate>
</item>
<item>
<guid>446</guid>
<title>加长增高对话框与文本框</title>
<link>https://www.qwbm.com/new.asp?id=446</link>
<description><![CDATA[
以下为详细代码
&lt;title&gt;加长增高对话框与文本框 深山工作室,深山行者优秀个人网页欣赏,企业网站制作——Powered By Qwbm&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=gb2312"&gt;
&lt;meta name="KeyWords" content="深山工作室,深山行者优秀个人网页欣赏,企业网站制作"&gt;
&lt;meta name="Description" content="深山工作室,深山行者优秀个人网页欣赏,企业网站制作"&gt;
&lt;meta name="generator" content="dreamwerver8" /&gt;
&lt;meta name="author" content="www.qwbm.com,深山行者" /&gt;
&lt;meta name="copyright" content="Copyright 2008,www.qwbm.com,深山行者,565449214" /&]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=446</source>
<category>表单特效</category>
<pubDate>2009/4/27 20:57:31</pubDate>
</item>
<item>
<guid>445</guid>
<title>文字间隔翻转详解</title>
<link>https://www.qwbm.com/new.asp?id=445</link>
<description><![CDATA[
以下为详细代码

            &lt;DIV style="OVERFLOW: hidden; LINE-HEIGHT: 18px; HEIGHT: 18px"&gt;
            &lt;DIV id=marqueebox&gt;
			文字间隔翻转详解&lt;BR&gt;
			aaaaaa&lt;BR&gt;
			bbbb&lt;BR&gt;
            &lt;/DIV&gt;
			&lt;/DIV&gt;
			
&lt;SCRIPT&gt;
function startmarquee(lh,speed,delay) {
var p=false;
var t;
var o=document.getElementById("marqueebox");
o.innerHTML+=o.innerHTML;
o.style.marginTop=0;
o.onmouseover=function(){p=true;}
o.onmouseout=function(){p=false;}
function s]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=445</source>
<category>表单特效</category>
<pubDate>2009/4/27 20:53:33</pubDate>
</item>
<item>
<guid>423</guid>
<title>凹陷文字</title>
<link>https://www.qwbm.com/new.asp?id=423</link>
<description><![CDATA[
以下为详细代码
&lt;div style="width:300px;padding:20px;overflow:hidden;word-wrap:break-word;word-break:break:all; font-size:12px; line-height:18px; background-color:#eeeeee;"&gt;
&lt;font disabled&gt;凹陷文字
&lt;a href="http://www.lenvo.cn/"&gt;www.qwbm.com&lt;/a&gt;&lt;/font&gt;
&lt;/div&gt;

 
 
 
 
 
 
 
 ]]></description>
<author>admin</author>
<source>https://www.qwbm.com/new.asp?id=423</source>
<category>表单特效</category>
<pubDate>2009/4/16 20:49:14</pubDate>
</item>
<item>
<guid>370</guid>
<title>用javascript美化Select,并获取相应的值</title>
<link>https://www.qwbm.com/new.asp?id=370</link>
<description><![CDATA[
以下为详细代码
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"&gt;
&lt;HTML lang=zh-CN xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;HEAD&gt;&lt;TITLE&gt;用javascript美化Select,并获取相应的值&lt;/TITLE&gt;
&lt;META http-equiv=Content-Type content="text/html; charset=gb2312"&gt;
&lt;META http-equiv=Content-Language content=zh-CN&gt;
&lt;STYLE type=text/css&gt;* {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN:]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=370</source>
<category>表单特效</category>
<pubDate>2009/1/20 21:02:16</pubDate>
</item>
<item>
<guid>357</guid>
<title>静态页面在文本框中输入数字，表格直接算出相应的结果</title>
<link>https://www.qwbm.com/new.asp?id=357</link>
<description><![CDATA[
以下为详细代码
静态页面在文本框中输入数字，表格直接算出相应的结果
&lt;style&gt;td{width:100px}&lt;/style&gt;
&lt;table border=1&gt;
&lt;tr&gt;&lt;td&gt;名称&lt;/td&gt;&lt;td&gt;单价&lt;/td&gt;&lt;td&gt;数量&lt;/td&gt;&lt;td&gt;总计&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;牙膏&lt;/td&gt;&lt;td&gt;7&lt;/td&gt;&lt;td&gt;&lt;input value="1" onblur="cal(this)"/&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;牙刷&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;&lt;input value="1" onblur="cal(this)"/&gt;&lt;/td&gt;&lt;td&]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=357</source>
<category>表单特效</category>
<pubDate>2008/12/16 19:39:50</pubDate>
</item>
<item>
<guid>356</guid>
<title>复选框添加，删除信息，过滤重复</title>
<link>https://www.qwbm.com/new.asp?id=356</link>
<description><![CDATA[
以下为详细代码
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=gb2312" /&gt;
&lt;title&gt;复选框添加，删除信息，过滤重复&lt;/title&gt;
&lt;style type="text/css"&gt;
&lt;!--
body{padding-top:50px;font-size:12px;}
h2{margin:0px;padding:0px;font-size:12px;font-weight:bold;}
.bton{border:1px solid #CCC;back]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=356</source>
<category>表单特效</category>
<pubDate>2008/12/16 19:32:31</pubDate>
</item>
<item>
<guid>354</guid>
<title>javascript表单验证！</title>
<link>https://www.qwbm.com/new.asp?id=354</link>
<description><![CDATA[
以上是用到的图片&nbsp;

以下为详细代码
javascript表单验证！

&lt;script&gt;
function passreg(str,strname){
 
 var pwdvalue = document.getElementById(str).value;
 var infvalue = document.getElementById(strname);
 
 if (pwdvalue.length &lt; 5 ){ 
  infvalue.innerHTML = "密码不能少于 5 位";
  infvalue.className = "error";
  }
 if (pwdvalue.length &gt; 4 ){ 
  infvalue.innerHTML = "密码正确";
  infvalue.className = "right";
  }
}

function lents(){
 
 var lentente = document.getElementById('content').valu]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=354</source>
<category>表单特效</category>
<pubDate>2008/12/11 21:22:58</pubDate>
</item>
<item>
<guid>297</guid>
<title>图片上传时，如果格式不正确，跳出警告</title>
<link>https://www.qwbm.com/new.asp?id=297</link>
<description><![CDATA[
以下为详细代码
图片上传时，如果格式不正确，跳出警告，
方法差不多，唯一不同的是，两个预览方式不同。
&lt;p&gt;
第一种方法

&lt;form name="form5" id="form5" method="post" action="#"&gt;
&lt;input type="file" name="file5" id="file5" onchange="preview5()"/&gt;
&lt;/form&gt;

&lt;script type="text/javascript"&gt;
function preview5(){  
  var x = document.getElementById("file5");  
  if(!x || !x.value) return;  
  var patn = /\.jpg$|\.jpeg$|\.gif$/i;  
  
  if(patn.test(x.value)){    
    var y = document.getElementById("img5");    
 ]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=297</source>
<category>表单特效</category>
<pubDate>2008/7/9 14:27:34</pubDate>
</item>
<item>
<guid>295</guid>
<title>双击文字后实现编辑文本功能</title>
<link>https://www.qwbm.com/new.asp?id=295</link>
<description><![CDATA[




以下为详细代码
&lt;FONT color=#ff0000&gt;&lt;STRONG&gt;双击&lt;/STRONG&gt;&lt;/FONT&gt;文字后实现编辑文本功能 



&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "HTML://www.w3.org/TR/xHTML1/DTD/xHTML1-transitional.dtd"&gt;
&lt;HTML xmlns="HTML://www.w3.org/1999/xHTML"&gt;
&lt;head&gt;
&lt;meta HTML-equiv="Content-Type" content="text/HTML; charset=gb2312" /&gt;
&lt;meta name="author" content="wuleying"&gt; 
&lt;title&gt;无标题文档&lt;/title&gt;
&lt;style&gt;
input.t {border:1px so]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=295</source>
<category>表单特效</category>
<pubDate>2008/7/7 22:19:28</pubDate>
</item>
<item>
<guid>270</guid>
<title>利用javascript静态改变表单指向与提交方式</title>
<link>https://www.qwbm.com/new.asp?id=270</link>
<description><![CDATA[
以下为详细代码
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;无标题文档&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
document.getElementById('frmSearch').action='#';&lt;br /&gt;
document.getElementById('frmSearch').method='post'&lt;br /&gt;
&lt;form id="formtable" nam]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=270</source>
<category>表单特效</category>
<pubDate>2008/6/13 11:53:04</pubDate>
</item>
<item>
<guid>259</guid>
<title>非常漂亮的当前页面内容搜索代码</title>
<link>https://www.qwbm.com/new.asp?id=259</link>
<description><![CDATA[
以下为详细代码
非常漂亮的当前页面内容搜索代码
&lt;script&gt;
var NS4 = (document.layers);
var IE4 = (document.all);
var win = this;
var n   = 0;
function findInPage(str)
{
var txt, i, found;
if (str == "" || str == "您要找的歌名")
return false;
if (NS4)
{
if (!win.find(str))
while(win.find(str, false, true))
n++;
else
n++;
if (n == 0) alert("[" + str + "]" + "没有找到您要的歌曲.请确认你输入的关键字是否正确!");
}
if (IE4)
{
txt = win.document.body.createTextRange();
for (i = 0; i &lt;= n &amp;&amp; (found = txt.findText(]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=259</source>
<category>表单特效</category>
<pubDate>2008/6/8 20:20:24</pubDate>
</item>
<item>
<guid>252</guid>
<title>非常不错的页面搜索器,还可以移动</title>
<link>https://www.qwbm.com/new.asp?id=252</link>
<description><![CDATA[
以下为详细代码
脚本说明:
把如下代码加入&lt;body&gt;区域中
&lt;style type=text/css&gt;
BODY {
	FONT-FAMILY: "宋体","Arial","Times New Roman"; FONT-SIZE: 12px; LETTER-SPACING: 1pt; LINE-HEIGHT: 22px; MARGIN-LEFT: 5pt; MARGIN-TOP: 5pt
}
#scontentmain {
	HEIGHT: 30px; POSITION: absolute; TOP: 28px; WIDTH: 228px
}
#scontentbar {
	BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; CURSOR: hand; HEIGHT: 15px; PADDING-BOTTOM: 1px; PADDING-LEFT]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=252</source>
<category>表单特效</category>
<pubDate>2008/6/6 21:02:00</pubDate>
</item>
<item>
<guid>241</guid>
<title>当鼠标经过表单,表单承现选择状效果</title>
<link>https://www.qwbm.com/new.asp?id=241</link>
<description><![CDATA[

以下为详细代码
&lt;textarea rows="4" cols="39" onMouseOver="this.focus()" 
onFocus="this.select()"&gt;当鼠标经过表单,表单承现选择状效果&lt;/textarea&gt;

  
  
  
  
  
  
  
 ]]></description>
<author>深山行者</author>
<source>https://www.qwbm.com/new.asp?id=241</source>
<category>表单特效</category>
<pubDate>2008/6/1 21:19:32</pubDate>
</item>
</channel>
</rss>
