onlinecode.aspx
上传用户:lanchensha
上传日期:2022-02-27
资源大小:7530k
文件大小:3k
源码类别:

编辑器/阅读器

开发平台:

C#

  1. <%@ Page language="c#" AutoEventWireup="true"  Inherits="DotNetTextBox.PageCode"%>
  2. <%@ Import Namespace="DotNetTextBox" %>
  3. <html>
  4. <head>
  5. <meta http-equiv="pragma" content="no-cache" />
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  7. <base target="_self" />
  8. <style type="text/css">
  9. body,a,table,input,select{font-size:12px;font-family:宋体,Verdana,Arial}
  10. </style>
  11. <script type="text/javascript">
  12. Request = {
  13. QueryString : function(item){
  14. var svalue = location.search.match(new RegExp("[?&]" + item + "=([^&]*)(&?)","i"));
  15. return svalue ? svalue[1] : svalue;
  16. }
  17. }
  18. var type=Request.QueryString("type");
  19. function insertOnlineCode()
  20. {
  21. var arr=new Array;
  22. if(document.getElementById("number").value!="")
  23. {
  24. if(type.indexOf("_popup_qq_menu")!=-1)
  25. {
  26. arr[0]=document.getElementById("number").value;
  27. arr[1]=document.getElementById("qqstyle").value;
  28. parent.inserObject(parent.document.getElementById(Request.QueryString("name")).contentWindow,'qq',arr);
  29. }
  30. else if(type.indexOf("_popup_msn_menu")!=-1)
  31. {
  32. parent.inserObject(parent.document.getElementById(Request.QueryString("name")).contentWindow,'msn',document.getElementById("number").value);
  33. }
  34. else
  35. {
  36. parent.inserObject(parent.document.getElementById(Request.QueryString("name")).contentWindow,'icq',document.getElementById("number").value);
  37. }
  38. }
  39. parent.popupmenu.hide();
  40. parent.rcmenu.hide();
  41. }
  42. </script>
  43. </head>
  44. <body bgcolor="#f9f8f7" leftmargin="5" topmargin="0">
  45. <form runat="server">
  46. <br />
  47. <fieldset>
  48. <span id="prompt"></span><br/><input id="number" onfocus="this.value='';" style="width: 170px" type="text" />&nbsp;<br />
  49. <label id="showstyle" style="visibility:hidden"><%=ResourceManager.GetString("qqstyle")%><select id="qqstyle">
  50. <option selected="selected"  value="1">1</option>
  51. <option value="2">2</option>
  52. <option value="3">3</option>
  53. <option value="4">4</option>
  54. <option value="5">5</option>
  55. <option value="6">6</option>
  56. <option value="7">7</option>
  57. <option value="8">8</option>
  58. <option value="9">9</option>
  59. <option value="10">10</option>
  60. <option value="11">11</option>
  61. <option value="12">12</option>
  62. <option value="13">13</option>
  63. </select></label>
  64. <input onclick="insertOnlineCode()" type="button" value='<%=ResourceManager.GetString("insert")%>'/>
  65. <input onclick="parent.popupmenu.hide();parent.rcmenu.hide();" type="button" value='<%=ResourceManager.GetString("close")%>'/><br />
  66. <span style="visibility:hidden" id="viewstyle"><a href="http://is.qq.com/webpresence/code.shtml" target=_blank><%=ResourceManager.GetString("viewstyle")%></a></span>
  67. </fieldset></form>
  68. </body>
  69. <script type="text/javascript" language="javascript">
  70. if(type.indexOf("_popup_qq_menu")!=-1)
  71. {
  72. document.getElementById("prompt").innerHTML='<%=ResourceManager.GetString("inputqq")%>';
  73. document.getElementById("showstyle").style.visibility="visible";
  74. document.getElementById("viewstyle").style.visibility="visible";
  75. document.title='<%=ResourceManager.GetString("qq")%>';
  76. }
  77. else if(type.indexOf("_popup_msn_menu")!=-1)
  78. {
  79. document.getElementById("prompt").innerHTML='<%=ResourceManager.GetString("inputmsn")%>';
  80. document.title='<%=ResourceManager.GetString("msn")%>';
  81. }
  82. else
  83. {
  84. document.getElementById("prompt").innerHTML='<%=ResourceManager.GetString("inputicq")%>';
  85. document.title='<%=ResourceManager.GetString("icq")%>';
  86. }
  87. </script></html>