87,990
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link rel="stylesheet" href= "styles/style.css" type="text/css"/>
<script type="text/javascript" src= "Scripts/wysiwyg.js" charset="GBK"></script>
<script type="text/javascript" src= "Scripts/wysiwyg-settings.js" charset="GBK"></script>
<script type="text/javascript">
// Use it to attach the editor to all textareas with full featured setup
//WYSIWYG.attach('all', full);
// Use it to attach the editor directly to a defined textarea
WYSIWYG.attach('textarea3', full); // small setup
// Use it to display an iframes instead of a textareas
//WYSIWYG.display('all', full);
</script>
<script type="text/javascript">
function upperCase() {
WYSIWYG.updateTextArea(n);
var y = document.getElementById("textarea3").value
//document.getElementById(x).value = y.toUpperCase()
document.getElementById("ccc").innerHTML = y;
}
</script>
</head>
<body>
<textarea id="textarea3" name="test3">
A small editor...can come in handy when you just need font size, bold, italic, etc.
</textarea>
<br />
<input id="Button1" type="button" value="button" onclick="upperCase()"/>
<span id="ccc">fghfgh</span>
</body>
</html>