⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 textarearesize.ascx

📁 基于Windows平台的ASP.net框架
💻 ASCX
字号:
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="TextareaResize.ascx.cs" Inherits="Discuz.Forums.Admin.UserControls.TextareaResize" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<script language="JavaScript">
function zoomtextarea(objname, zoom) 
{
 	zoomsize = zoom ? 10 : -10;
	obj = document.Form1.elements[objname];
	if(obj.rows + zoomsize > 0 && obj.cols + zoomsize * 3 > 0) {
		obj.rows += zoomsize;
		obj.cols += zoomsize * 3;
	}
}
</script>
 
<%if(imagepath==""){%>
<img src="../images/zoomin.gif" onmouseover="this.style.cursor='hand'" onclick="zoomtextarea('<%=controlname%>:posttextarea', 1)" title="扩大">
<img src="../images/zoomout.gif" onmouseover="this.style.cursor='hand'" onclick="zoomtextarea('<%=controlname%>:posttextarea', 0)" title="缩小">
<%}else{%>
<img src="<%=imagepath%>/zoomin.gif" onmouseover="this.style.cursor='hand'" onclick="zoomtextarea('<%=controlname%>:posttextarea', 1)" title="扩大">
<img src="<%=imagepath%>/zoomout.gif" onmouseover="this.style.cursor='hand'" onclick="zoomtextarea('<%=controlname%>:posttextarea', 0)" title="缩小">
<%}%>
<br>
<TEXTAREA rows="5" cols="45" runat="server" id="posttextarea" class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';"></TEXTAREA>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -