Special characters, regular symbols, and code comparison table

Source: Internet
Author: User
Tags comparison table

<Html>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<Meta name = "Author" CONTENT = "goaler"/>
<Meta name = "Keywords" CONTENT = "special characters, regular symbols, and code table"/>
<Meta name = "Description" CONTENT = "special characters, regular symbols, and code table"/>
<Title> special characters, regular symbols, and code comparison table </title>
<Link href = "style.css" rel = "stylesheet" type = "text/css"/>
</Head>

<Body>
<Div class = "menu_head">
Special characters, regular symbols, and code comparison table
<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 "> Code </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 "> General </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>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.