var txt="Hello World!"
1.放大
document.write("<p>Big: " + txt.big() + "</p>")
2.縮小
document.write("<p>Small: " + txt.small() + "</p>")
3.加粗
document.write("<p>Bold: " + txt.bold() + "</p>")
4.斜體
document.write("<p>Italic: " + txt.italics() + "</p>")
5.閃爍
document.write("<p>Blink: " + txt.blink() + " (does not work in IE)</p>")
6.固定
document.write("<p>Fixed: " + txt.fixed() + "</p>")
7.中橫線
document.write("<p>Strike: " + txt.strike() + "</p>")
8.設置字體顏色
document.write("<p>Fontcolor: " + txt.fontcolor("Red") + "</p>")
9.設置置頂大小
document.write("<p>Fontsize: " + txt.fontsize(16) + "</p>")
10.轉換為小寫
document.write("<p>Lowercase: " + txt.toLowerCase() + "</p>")
11.轉換為大寫
document.write("<p>Uppercase: " + txt.toUpperCase() + "</p>")
12.居中
document.write("<p>Subscript: " + txt.sub() + "</p>")
13.居上
document.write("<p>Superscript: " + txt.sup() + "</p>")
14.鏈接
document.write("<p>Link: " + txt.link("http://www.w3school.com.cn") + "</p>")