■文字に装飾を施したい


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>文字に装飾を施したい</title>
</head>
<body>
<p>■文字に装飾を施したい</p>
<script type="text/JavaScript">
<!--
num=2005;
document.write("<p>"+"文字列を強調文字に指定する。".bold()+"</p>");
document.write("<p>"+"文字列を斜体にする。".italics()+"</p>");
document.write("<p>"+"文字列に取消線を付ける。".strike()+"</p>");
document.write("<p>"+"文字列を固定ピッチフォントで表示する。".fixed()+"</p>");
document.write("<p>文字列を"+"上付き文字".sup()+"にする。</p>");
document.write("<p>文字列を"+"下付き文字".sub()+"にする。</p>");
document.write("<p>"+"文字列を点滅する。".blink()+"</p>");
document.write("<p>数値を文字列に変換してから指定する:"+String(num).bold()+"</p>");
</script>
</body>
</html>



★解説★