translate.asp
上传用户:qyswxdl
上传日期:2013-06-01
资源大小:1373k
文件大小:2k
源码类别:

家庭/个人应用

开发平台:

ASP/ASPX

  1. <%
  2. dim item
  3. item=request.QueryString()
  4. if item="" then
  5. response.redirect"/box"
  6. response.end
  7. end if
  8. dim code
  9. code=request.form("code")
  10. select case item
  11. case "js"
  12.    code=replace(code,chr(34),""&chr(34))
  13.    code=replace(code,"</script>","</script>")
  14.    code=replace(code,vbCrLf,chr(34)&");"&vbCrLf&"document.write("&chr(34))
  15.    code="<script language=""JavaScript"">"&vbCrLf&"<!--"&vbCrLf&"document.write("&chr(34)&code&chr(34)&");"&vbCrLf&"//-->"&vbCrLf&"</script>"
  16.    
  17. end select
  18. %>
  19. <html>
  20. <head>
  21. <title>工具箱</title>
  22. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  23. <LINK href="../images/forum_admin.css" type=text/css rel=stylesheet>
  24. <script language="javascript">
  25. function copy(){
  26. document.code.code.select()
  27. textRange=document.code.code.createTextRange();
  28. textRange.execCommand("Copy");
  29. }
  30. </script>
  31. </head>
  32. <body marginheight="0" marginwidth="0" rightmargin="0" topmargin="0" leftmargin="0">
  33. <div align="center">
  34. <center>
  35. <table border="0" cellpadding="0" cellspacing="0" width="609" height="40" style="border-collapse: collapse" bordercolor="#111111">
  36. <tr>
  37. <td height="14" width="609"></td>
  38. </tr>
  39. </table>
  40. </center>
  41. </div>
  42. <div align="center">
  43. <center>
  44. <table border="0" cellpadding="0" cellspacing="0" width="603" height="365" >
  45. <input type="hidden" name="channel" value="global">
  46. <td height="365" width="448" valign="top">
  47. <form name="code">
  48. <p style="margin-left: 15">
  49. <script>
  50. switch(location.search){
  51. case "?js":
  52. document.write("HTML>JavaScript 转换工具")
  53. break;
  54. }
  55. </script>
  56. <br>
  57. <textarea name="code" rows="21" cols="93" style="font:9pt 宋体; color: #800000"><%=code%></textarea><br>
  58. <input onclick="copy()" type="button" value="复制到剪贴板">
  59. </form>
  60. </td>
  61. </tr>
  62. </table>
  63.   </center>
  64. </div>
  65. <table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
  66.       <tr> 
  67.     </table>
  68. </body>
  69. </html></textarea>