📄 index.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script language="javascript" type="text/javascript"
src="/T/My97DatePicker3.0.1/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/T/fckeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
// Automatically calculates the editor base path based on the _samples directory.
// This is usefull only for these samples. A real application should use something like this:
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
var sBasePath = "/T/fckeditor/";
var oFCKeditor = new FCKeditor( 'c' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.ReplaceTextarea() ;
}
</script>
<script type="text/javascript">
var req;
function createRequest(){
if(window.ActiveXObject){
req=new ActiveXObject("Microsoft.XMLHTTP");
}else if(window.XMLHttpRequest){
req=new XMLHttqRequest();
}
if(req){
req.open("POST","TServlet","true");
req.onreadystatechange=changeTest;
req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
req.send("val="+document.getElementById("sel").value);
}
}
function changeTest(){
if(req.readyState==4){
if(req.status == 200){
document.getElementById("b").innerHTML = req.responseText;
}else
alert(req.status);
}
}
</script>
</head>
<body>
<select name="sel" onchange="createRequest()">
<option value="1">吉林</option>
<option value="2">长春</option>
<option value="3">松源</option>
</select>
<div id="b"></div>
文本域
<textarea name="c" rows="10" cols="80"></textarea>
<input class="Wdate" type="text" onfocus="new WdatePicker(this)" />
<input class="Wdate" type="text"
onfocus="new WdatePicker(this,null,false,'whyGreen')" />
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -