1. ...我能低调的说看看w3school.com.cn中html再来吗?
9. 我记的有个人发了个单文件机器人
刚好页面是一个文本框和一个按钮。而且还带回复的哦!
13. <script type="text/javascript">
<!--
document.write('<div id="mylength" style="color:pink;">0 / 20</div>\
<div style="border:1px solid pink; border-radius:3px;-webkit-border-radius:3px;overflow:hidden;display:inline-block;">\
<input type="text" style="border:none;width:200px;height:36px;line-height:36px;float:left;display:block;color:silver;" id="myinput" placeholder="请输入内容" maxlength="20" value="" />\
<input type="button" onclick="fnWeb()" value="Enter" style="float:left;width:60px;height:38px;line-height:38px;background:pink; border:none; color:white;display:block;" /></div>');
var idI = document.getElementById('myinput'),
idL = document.getElementById('mylength');
idI.oninput = function(){
idL.innerHTML = this.value.length + ' / 20';
};
var sWeb = '
http://m.baidu.com/from=2001a/s?word=';
// 这里改地址
function fnWeb(){
var oEles = idI.value;
if (/^\s*$/.test(oEles)) return;
location.href = sWeb + oEles;
// 跳转网址
}
//-->
</script>