JavaScript中生成HTML的字符格式函数

str.anchor("anchor1")

<A NAME="anchor1">This is a string</A>

This is a string

str.big()

<BIG>This is a string</BIG>

This is a string

str.blink()

<BLINK>This is a string</BLINK >

This is a string

str.bold()

<B>This is a string</B>

This is a string

str.fixed()

<TT>This is a string</TT>

This is a string

str.fontcolor("darkred")

<FONT COLOR="darkred">This is a string</FONT>

This is a string

str.fontsize(5)

<FONT SIZE="5">This is a string</FONT>

This is a string

str.italics()

<I>This is a string</I>

This is a string

str.link("index.html")

<A HREF="index.html">This is a string</A>

This is a string

str.small()

<SMALL>This is a string</SMALL>

This is a string

str.strike()

<STRIKE>This is a string</STRIKE>

This is a string

str.sub()

<SUB>This is a string</SUB>

This is a string

str.sup()

<SUP>This is a string</SUP>

This is a string

str.toLowerCase()

this is a string

this is a string

str.toUpperCase()

THIS IS A STRING

THIS IS A STRING

posted @ 2005-12-28 14:02  Think  阅读(2353)  评论(1编辑  收藏  举报