var txt="Hello World!"
1.放大
3.加粗
5.闪烁
8.设置字体颜色
10.转换为小写
12.居中
14.链接
document.write("<p>Link: " + txt.link("http://www.w3school.com.cn") + "</p>")
1.放大
document.write("<p>Big: " + txt.big() + "</p>")
2.缩小
3.加粗
document.write("<p>Bold: " + txt.bold() + "</p>")
4.斜体
5.闪烁
document.write("<p>Blink: " + txt.blink() + " (does not work in IE)</p>")
6.固定
document.write("<p>Fixed: " + txt.fixed() + "</p>")
7.中横线
8.设置字体颜色
document.write("<p>Fontcolor: " + txt.fontcolor("Red") + "</p>")
9.设置置顶大小
10.转换为小写
document.write("<p>Lowercase: " + txt.toLowerCase() + "</p>")
11.转换为大写
12.居中
document.write("<p>Subscript: " + txt.sub() + "</p>")
13.居上
14.链接
document.write("<p>Link: " + txt.link("http://www.w3school.com.cn") + "</p>")