textarearesize.ascx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:2k
源码类别:

SCSI/ASPI

开发平台:

Others

  1. <%@ Control Language="c#" Inherits="Discuz.Web.Admin.TextareaResize" Codebehind="textarearesize.ascx.cs" %>
  2. <script type="text/javascript">
  3. function zoomtextarea(objname, zoom) 
  4. {
  5.   zoomsize = zoom ? 10 : -10;
  6. obj = document.Form1.elements[objname];
  7. if(obj.rows + zoomsize > 0 && obj.cols + zoomsize * 3 > 0) {
  8. obj.rows += zoomsize;
  9. obj.cols += zoomsize * 3;
  10. }
  11. }
  12. </script>
  13. <% if (this.HintInfo != "") { Response.Write("<span id="" + this.ClientID + ""  onmouseover="showhintinfo(this," + this.HintLeftOffSet + "," + this.HintTopOffSet + ",'" + this.HintTitle + "','" + this.HintInfo + "','" + this.HintHeight + "','" + this.HintShowType + "');" onmouseout="hidehintinfo();">"); } %>
  14. <%if(imagepath==""){%>
  15. <img src="../images/zoomin.gif" onmouseover="this.style.cursor='hand'" onclick="zoomtextarea('<%=controlname%>:posttextarea', 1)" title="扩大" />
  16. <img src="../images/zoomout.gif" onmouseover="this.style.cursor='hand'" onclick="zoomtextarea('<%=controlname%>:posttextarea', 0)" title="缩小" />
  17. <%}else{%>
  18. <img src="<%=imagepath%>/zoomin.gif" onmouseover="this.style.cursor='hand'" onclick="zoomtextarea('<%=controlname%>:posttextarea', 1)" title="扩大" />
  19. <img src="<%=imagepath%>/zoomout.gif" onmouseover="this.style.cursor='hand'" onclick="zoomtextarea('<%=controlname%>:posttextarea', 0)" title="缩小" />
  20. <%}%>
  21. <br>
  22. <textarea rows="5" cols="45" runat="server" id="posttextarea" onfocus="this.className='areamouseover';" onblur="this.className='';" ></textarea>
  23. <% if (this.HintInfo != "") { Response.Write("</span>"); } %>