62,051
社区成员
发帖
与我相关
我的任务
分享
”“
”
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html;charset=gb2312"/>
<script language="javascript" type="text/jscript">
function bright(key) {
var key = new Array(
'abstract', 'as', 'base', 'bool',
'break', 'byte', 'case', 'catch',
'char', 'checked', 'class', 'const',
'continue', 'decimal', 'default', 'delegate',
'do', 'double', 'else', 'enum', 'ecent', 'explicit',
'extern', 'false', 'finally', 'fixed',
'float', 'for', 'foreach', 'get', 'goto', 'if',
'implicit', 'in', 'int', 'interface',
'internal', 'is', 'lock', 'long', 'namespace',
'new', 'null', 'object', 'out', 'override',
'partial', 'private', 'protected',
'public', 'readonly', 'ref', 'return',
'sbyte', 'sealed', 'set', 'short',
'sizeof', 'stackalloc', 'static', 'struct',
'switch', 'this', 'throw', 'true', 'try', 'typeof', 'uint', 'ulong'
, 'unchecked', 'unsafe', 'ushort',
'using', 'value', 'virtual', 'volatile'
, 'volatile', 'void', 'where', 'while', 'yield')
var key2 = new Array('+', '-', '*', '/', '=', '"');
var obT = document.body.createTextRange();
for (var i = 0; i < key.length; i++) {
if (obT.findText(key[i]))
obT.pasteHTML(obT.text.fontcolor('#003399'));
}
for (var i = 0; i < key2.length; i++) {
if (obT.findText(key2[i]))
obT.pasteHTML(obT.text.fontcolor('#cc0000'));
}
}
</script>
<script>
function aa() {
alert(document.getElementById('hidd').value);
}
</script>
</head>
<body onload="bright('public');">
<div style="border-left:8px double #333333; background-color: #E8E8E8;">
publicvoid try +-=
</body>
</html>