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

📄 emot.aspx

📁 DotNetTextBox所见即所得编辑器控件 v3.3.4 For Asp.Net2.0
💻 ASPX
字号:
<%@ Page language="c#" AutoEventWireup="true" %>
<%@ Import Namespace="DotNetTextBox" %>
<html>
<head>
<title>emot</title>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Window-target" content="_top">
<style type="text/css">
body,a,table,td{font-size:12px;font-family:宋体,Verdana,Arial}
</style>
<script runat="server" language="C#">
private void Page_Load(object sender, System.EventArgs e)
{
    if (Request.Cookies["languages"] != null)
    {
        ResourceManager.SiteLanguageKey = Request.Cookies["languages"].Value;
    }
    else
    {
        ResourceManager.SiteLanguageKey = HttpContext.Current.Request.ServerVariables["HTTP_ACCEPT_LANGUAGE"].ToLower().Split(',')[0];
    }
}
</script>
<script type="text/javascript">

Request = {
 QueryString : function(item){
  var svalue = location.search.match(new RegExp("[\?\&]" + item + "=([^\&]*)(\&?)","i"));
  return svalue ? svalue[1] : svalue;
 }
}

function insertEmot(strCode)
{
    if(strCode.toLowerCase().indexOf("http")!=0)
    {
       strCode=getCurrentDirectory()+strCode;
    }

  parent.inserObject(parent.document.getElementById(Request.QueryString("name")).contentWindow,'emot',strCode);
  parent.popMenu2.hide();
}

function getCurrentDirectory(){
  var locHref = location.href;
  var locArray = locHref.split("/");
  delete locArray[locArray.length-1];
  var dirTxt = locArray.join("/");
  return dirTxt;
}

</script>
</head>
<body topmargin="0" bgcolor="#f9f8f7">
    <table border="0" align="center" cellpadding="2" cellspacing="2"><tr>
    <td>
        &nbsp;[ <%=ResourceManager.GetString("insertemot")%> ]<br />
        <table align="left" border="0" cellpadding="2" cellspacing="2">
            <tr>
                <td align="center" colspan="3">
                    <img height="24" onclick="javascript:insertEmot('emot/1.png')" src="emot/1.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/2.png')" src="emot/2.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/3.png')" src="emot/3.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/4.png')" src="emot/4.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/5.png')" src="emot/5.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/6.png')" src="emot/6.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/7.png')" src="emot/7.png"
                        style="cursor:pointer" width="24" /></td>
            </tr>
            <tr>
                <td align="center" colspan="3" style="width: 283px; height: 27px">
                    <img height="24" onclick="javascript:insertEmot('emot/8.png')" src="emot/8.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/9.png')" src="emot/9.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/10.png')" src="emot/10.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/11.png')" src="emot/11.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/12.png')" src="emot/12.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/13.png')" src="emot/13.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/14.png')" src="emot/14.png"
                        style="cursor:pointer" width="24" /></td>
            </tr>
            <tr>
                <td align="center" colspan="3" style="width: 283px; height: 32px">
                    <img height="24" onclick="javascript:insertEmot('emot/15.png')" src="emot/15.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/16.png')" src="emot/16.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/17.png')" src="emot/17.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/18.png')" src="emot/18.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/19.png')" src="emot/19.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/20.png')" src="emot/20.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/21.png')" src="emot/21.png"
                        style="cursor:pointer" width="24" /></td>
            </tr>
            <tr>
                <td align="center" colspan="3" style="width: 283px; height: 29px">
                    <img height="24" onclick="javascript:insertEmot('emot/22.png')" src="emot/22.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/23.png')" src="emot/23.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/24.png')" src="emot/24.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/25.png')" src="emot/25.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/26.png')" src="emot/26.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/27.png')" src="emot/27.png"
                        style="cursor:pointer" width="24" />&nbsp;&nbsp;&nbsp;<img height="24" onclick="javascript:insertEmot('emot/28.png')" src="emot/28.png"
                        style="cursor:pointer" width="24" /></td>
            </tr>
        </table>
          </td>
  </tr><tr>
      <td colspan="3" align="center">
          <input id="emoturl" size="40" value="<%=ResourceManager.GetString("emotpath")%>" onclick="this.value=''" style="width: 160px" type="text" />&nbsp;
          <input name="insert" type="button" value='<%=ResourceManager.GetString("insert")%>' onclick="javascript:insertEmot(emoturl.value);parent.popMenu2.hide();" />&nbsp;
          <input name="close" onclick="parent.popMenu2.hide();"
              type="button" value='<%=ResourceManager.GetString("close")%>' /></td>
  </tr></table></body></html>

⌨️ 快捷键说明

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