2013年6月18日星期二
http://blog.youkuaiyun.com/mazhaojuan/article/details/7757554 可编辑表格
http://blog.youkuaiyun.com/is668com/article/details/8773973 失去焦点后,恢复
修改h3标题显示的内容 http://www.myexception.cn/javascript/241709.html
2013年6月19日星期三
select 既支持下拉选择也支持手动http://www.100xue.cn/web/web_1171665514.html
<selectname="c_cpu" >
<optionvalue="1">1</option>
<option value="2"selected>2</option>
<optionvalue="3">3</option>
<optionvalue="4">4</option>
</select>
<input name="c_cpua"type="text" ></TD>
<input name="textAndSelect"type="text" style="display:none"onChange='c_cpua.value=c_cpu.options[c_cpu.selectedIndex].value'>
<SCRIPTLANGUAGE="JavaScript">
<!--
function textAndSelect(text,select){
var t=document.all[text];
var s=document.all[select];
var ts=document.all['textAndSelect'];
t.value=s.options[s.selectedIndex].value;
s.onchange=ts.onchange;
s.style.position='absolute';
s.style.width="150px";
s.style.height="20px";
s.style.clip='rect(0 180 110 130)';
t.style.top=s.style.top;
t.style.position='absolute';
t.style.width="149px";
t.style.height="22px";
}
textAndSelect('c_cpua','c_cpu');
//-->
</SCRIPT>