你把这个代码运行一下
<html>
<head>
<title>特殊字符、常规符号及其代码对照表</title>
</head>
<body bgColor="black"><center style="font-size:20px; color:red; font-family: 黑体">
<form name="font">
<select name="family" size="1" onChange="JavaScript:chgFont();" style="font-size:20px; color:red; font-family: 黑体">
<option selected value="Webdings">Webdings</option>
<option value="Wingdings">Wingdings</option>
<option value="Wingdings 2">Wingdings 2</option>
<option value="Wingdings 3">Wingdings 3</option>
<option value="Symbol">Symbol</option>
</select>符号、常规符号及其代码对照表
</form>
</center><script language="JavaScript">
document.write('<table border="1" width="100%" cellspacing="0" cellpadding="0">');
for (j=0;j<4;j++) {
document.write('<td bgcolor="menu" bordercolor="menu" align="center" valign="middle" width="7%" style="font-size:; color:red; font-family: fixedsys">代码</td>');
document.write('<td id="F'+j+'" bgcolor="menu" bordercolor="" align="center" valign="middle" width="11%" style="font-size:; color:red; font-family: fixedsys">Webdings</td>');
document.write('<td bgcolor="menu" bordercolor="menu" align="center" valign="middle" width="7%" style="font-size:; color:red; font-family: fixedsys">常规</td>');
}
for(i=32;i<256;i++){
if (i%4==0) {
document.write('<tr>');
}
document.write('<td bgcolor="menu" align="center" valign="middle" width="7%" style="font-size:; color:blue; font-family: fixedsys"><a>&#</a>'+i+';</td>');
document.write('<td id="f'+i+'" align="center" valign="middle" width="11%" style="font-size:40px; color:yellow; font-family: Webdings">&#'+i+';</td>');
document.write('<td align="center" valign="middle" width="7%" style="font-size:30px; color:white; font-family: Arial">&#'+i+';</td>'); if (i%4==3) {
document.write('</tr>');
}
}
document.write('</table>');
</script><script language="JavaScript">
function chgFont() {
fontIndex = document.font.family.selectedIndex;
fontValue = document.font.family.options[fontIndex].value; for (m=0;m<4;m++){
eval('F'+m+'.innerHTML="'+fontValue+'";');
}
for (n=32;n<256;n++){
eval('f'+n+'.style.fontFamily="'+fontValue+'";');
}
}chgFont();
</script></body>
</html>
<html>
<head>
<title>特殊字符、常规符号及其代码对照表</title>
</head>
<body bgColor="black"><center style="font-size:20px; color:red; font-family: 黑体">
<form name="font">
<select name="family" size="1" onChange="JavaScript:chgFont();" style="font-size:20px; color:red; font-family: 黑体">
<option selected value="Webdings">Webdings</option>
<option value="Wingdings">Wingdings</option>
<option value="Wingdings 2">Wingdings 2</option>
<option value="Wingdings 3">Wingdings 3</option>
<option value="Symbol">Symbol</option>
</select>符号、常规符号及其代码对照表
</form>
</center><script language="JavaScript">
document.write('<table border="1" width="100%" cellspacing="0" cellpadding="0">');
for (j=0;j<4;j++) {
document.write('<td bgcolor="menu" bordercolor="menu" align="center" valign="middle" width="7%" style="font-size:; color:red; font-family: fixedsys">代码</td>');
document.write('<td id="F'+j+'" bgcolor="menu" bordercolor="" align="center" valign="middle" width="11%" style="font-size:; color:red; font-family: fixedsys">Webdings</td>');
document.write('<td bgcolor="menu" bordercolor="menu" align="center" valign="middle" width="7%" style="font-size:; color:red; font-family: fixedsys">常规</td>');
}
for(i=32;i<256;i++){
if (i%4==0) {
document.write('<tr>');
}
document.write('<td bgcolor="menu" align="center" valign="middle" width="7%" style="font-size:; color:blue; font-family: fixedsys"><a>&#</a>'+i+';</td>');
document.write('<td id="f'+i+'" align="center" valign="middle" width="11%" style="font-size:40px; color:yellow; font-family: Webdings">&#'+i+';</td>');
document.write('<td align="center" valign="middle" width="7%" style="font-size:30px; color:white; font-family: Arial">&#'+i+';</td>'); if (i%4==3) {
document.write('</tr>');
}
}
document.write('</table>');
</script><script language="JavaScript">
function chgFont() {
fontIndex = document.font.family.selectedIndex;
fontValue = document.font.family.options[fontIndex].value; for (m=0;m<4;m++){
eval('F'+m+'.innerHTML="'+fontValue+'";');
}
for (n=32;n<256;n++){
eval('f'+n+'.style.fontFamily="'+fontValue+'";');
}
}chgFont();
</script></body>
</html>
解决方案 »
- extjs disabled问题
- 感恩节求解 js 点击文字 自动在文字下面展现令一段文字
- JSP页面布局问题
- 点击按钮可复制input里面的地址 用js怎么写?
- 自动分配数值
- 弹出窗口我window.open()的问题?没有关闭弹出窗口前不能操作父窗口,怎么实现?
- 急找高手!
- window.open 打开的整个ie窗口可否设置成透明!
- Frame分上下二栏(topframe,downframe),如何通过topframe里的按钮刷新downfram窗口的同时自已也刷新?
- 在JavaScript 中click 与ontouch 冲突如何解决
- net_lover帮我!meizz帮帮我!(想在iframe里显示纯文本)
- 怎样在.htm中加入网页计数器呢?用javascript来制作网页计数器?
<script>for(a=0;a<=600;a++)document.write(a +" " +"&#"+a +";<br>");</script>
<script>
alert("┿".charCodeAt(0))
</script>
alert(String.fromCharCode(9535))
</script>