JavaScript 文字列操作 新しいページはコチラ
提供: yonewiki
(→小さくする small) |
(→大きくする big) |
||
139行: | 139行: | ||
サンプルスクリプト | サンプルスクリプト | ||
<syntaxhighlight lang="javascript" line start="1"> | <syntaxhighlight lang="javascript" line start="1"> | ||
− | + | strData6 = new String("フォントサイズを小さくする(small)"); | |
− | document.write( | + | document.write(strData6.small(), 1, "</BR></BR>"); |
− | document.write( | + | document.write(strData6.small().small(), 2, "</BR></BR>"); |
− | document.write( | + | document.write(strData6.small().small().small(), 3, "</BR></BR>"); |
− | document.write( | + | document.write(strData6.small().small().small().small(), 4, "</BR></BR>"); |
− | document.write( | + | document.write(strData6.small().small().small().small().small(), 5, "</BR></BR>"); |
− | document.write( | + | document.write(strData6.small().small().small().small().small().small(), 6, "</BR></BR>"); |
− | document.write( | + | document.write(strData6.small().small().small().small().small().small().small(), 7, "</BR></BR>"); |
− | document.write( | + | document.write(strData6.small().small().small().small().small().small().small().small(), 8, "</BR></BR>"); |
− | document.write( | + | document.write(strData6.small().small().small().small().small().small().small().small().small(), 9, "</BR></BR>"); |
− | document.write( | + | document.write(strData6.small().small().small().small().small().small().small().small().small().small(), 10, "</BR></BR>"); |
− | document.write("あ". | + | document.write("あ".small().small().small().small().small().small().small().small().small().small().small().small().small().small().small().small().small().small().small().small(), 20, "</BR></BR>"); |
</syntaxhighlight> | </syntaxhighlight> | ||
159行: | 159行: | ||
<yjavascript> | <yjavascript> | ||
− | + | strData6 = new String("フォントサイズを小さくする(small)"); | |
− | document.write( | + | document.write(strData6.small(), 1, "</BR></BR>"); |
− | document.write( | + | document.write(strData6.small().small(), 2, "</BR></BR>"); |
− | document.write( | + | document.write(strData6.small().small().small(), 3, "</BR></BR>"); |
− | document.write( | + | document.write(strData6.small().small().small().small(), 4, "</BR></BR>"); |
− | document.write( | + | document.write(strData6.small().small().small().small().small(), 5, "</BR></BR>"); |
− | document.write( | + | document.write(strData6.small().small().small().small().small().small(), 6, "</BR></BR>"); |
− | document.write( | + | document.write(strData6.small().small().small().small().small().small().small(), 7, "</BR></BR>"); |
− | document.write( | + | document.write(strData6.small().small().small().small().small().small().small().small(), 8, "</BR></BR>"); |
− | document.write( | + | document.write(strData6.small().small().small().small().small().small().small().small().small(), 9, "</BR></BR>"); |
− | document.write( | + | document.write(strData6.small().small().small().small().small().small().small().small().small().small(), 10, "</BR></BR>"); |
− | document.write("あ". | + | document.write("あ".small().small().small().small().small().small().small().small().small().small().small().small().small().small().small().small().small().small().small().small(), 20, "</BR></BR>"); |
</yjavascript> | </yjavascript> |