<textarea id="test" style="height:30px"></textArea><input type="button" value="+" onclick="document.all.test.style.height=document.all.test.style.height.replace('px','')/1+10">
<input type="button" value="-" onclick="document.all.test.style.height=document.all.test.style.height.replace('px','')/1-10">
<input type="button" value="-" onclick="document.all.test.style.height=document.all.test.style.height.replace('px','')/1-10">
解决方案 »
- jquery的$符号在chrome里undefined?
- 如何在关闭打开的弹出窗口后删除cookie
- 急,js与html问题,帮帮忙,在线等
- JavaScript中得到日期在mozilla下不正确,在ie中正常,为什么?
- fileupload的问题!!
- 如何让一个网页中的框架只显示纵向的滚动条,不显示横向的滚动条?
- 怎样在提交的表单,上传一个完整的日期时间?如在客户端就验证,怎样做?
- 请问是否有javascript的函数手册可以下载?能告诉地址吗?
- javascript中for循环次数问题?小白自学中,还望大神们解答一下,万分感谢!
- JS动态计算合计值
- 在线等,关于javascript二进制数字输入问题??
- js 变量定义问题, 很搞人, 郁闷
function chgSize(flag)
{
var obj = document.all.mytextarea
var col=5;//设置每次列改变量
var row=1;//设置每次行改变量
if(flag>0)
{
obj.cols+=col;
obj.rows+=row;
}
else
{
if(obj.cols>col)
obj.cols-=col;
if(obj.rows>row)
obj.rows-=row;
}
}
</script><input type="button" name="button" value="+" onclick="chgSize(1)"/>
<input type="button" name="button" value="-" onclick="chgSize(-1)"/>
<br />
<textarea name="mytextarea" cols="50" rows="5"></textarea>
function call_me(max_length) {
if((document.form1.mybox.value == null ) || (document.form1.mybox.value == "" )) document.form1.mybox.size = size;
if((document.form1.mybox.value.length >= size)&&(document.form1.mybox.value.length <= max_length)) document.form1.mybox.size = document.form1.mybox.value.length + 1;
else document.form1.mybox.size = size;
}
</SCRIPT><FORM name=form1>
<DIV align=center><INPUT style="FONT-FAMILY: Terminal" onfocus="setInterval('call_me(document.form1.mybox.maxLength)', 1)" maxLength=30 size=10 name=mybox> </DIV></FORM>
<SCRIPT>
var size = document.form1.mybox.size;
</SCRIPT>
<TEXTAREA class=InputArea1 id=id style="OVERFLOW-Y: hidden; WIDTH: 100%; HEIGHT: 114px" onpropertychange=this.style.posHeight=this.scrollHeight name=bz rows=4>
</TEXTAREA>