当前位置: 首页 > 图文教程 > 网络编程 > Javascript > 特殊字符、常规符号及其代码对照表

Javascript
动态改变图片尺寸(一)
JavaScript+PHP 应用一:网页制作中双下拉菜单的动态实现
JavaScript + PHP 应用二:网页设计中树形菜单的动态实现
在Javascript中为String对象添加trim,ltrim,rtrim方法
纯JavaScript时钟
网页之定时器详解
为网页添加活动的背景音乐
Javascript Game
实用的检测分辨率的程序代码
【推荐】一个非常漂亮的列表框
绝对精彩:在网页里做类似window右键的弹出式菜单
怎样使网页中的元素可编辑??
JavaScript和Java的区别
怎样编写IE和NN6通用的闪烁(blank)效果
关于如何动态地在同一页面实现两个 < select > 互传 (s1 <==> s2)
COOKIE欺骗
连串英文自动换行的方法
JavaScript中的正则表达式(1)
JavaScript中的正则表达式(2)
JavaScript窗口功能指南之定制新窗口

Javascript 中的 特殊字符、常规符号及其代码对照表


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-12   浏览: 58 ::
收藏到网摘: n/a

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META NAME="Author" CONTENT="goaler" />
<META NAME="Keywords" CONTENT="特殊字符、常规符号及其代码对照表" />
<META NAME="Description" CONTENT="特殊字符、常规符号及其代码对照表" />
<title>特殊字符、常规符号及其代码对照表</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="menu_head">
特殊字符、常规符号及其代码对照表
<select id="family" size="1" onChange="JavaScript:chgFont();" style="color:red;">
<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>
</div>
<script language="JavaScript">
document.write('<table border="1" width="100%" cellspacing="0" cellpadding="2">\n');
//document.write('<tr align="center">');
for (j=0;j<4;j++)
{
document.write('<td width="7%" align="center" style="font-size:14px;color:red;background:#D4D0C8">代码</td>\n');
document.write('<td width="11%" align="center" id="F'+j+'" style="font-size:14px;color:red;;background:#D4D0C8">Webdings</td>\n');
document.write('<td width="7%" align="center" style="font-size:14px;color:red;;background:#D4D0C8">常规</td>\n');
}
for(i=32;i<256;i++)
{
if (i%4==0)
{
document.write('<tr align="center">\n');
}
document.write('<td align="center" style="font-size:14px;background:#D4D0C8; color:blue; font-family: fixedsys"><a>&#</a>'+i+';</td>\n');
document.write('<td id="f'+i+'" align="center" style="font-size:14px;background:#FFFFFF; color:#CC5800; font-family: Webdings">&#'+i+';</td>\n');
document.write('<td align="center" style="font-size:14px;background:#FFFFFF;font-family: Arial black">&#'+i+';</td>\n');

if (i%4==3)
{
document.write('</tr>\n');
}
}
document.write('</table>\n');
</script>

<script language="JavaScript">
function chgFont()
{
fontIndex = document.getElementById("family").selectedIndex;
fontValue = document.getElementById("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>

</div>
</body>
</html>