テキストにグラデーションをかけるjavascript「Textgrad」

テキストは色や大きさを変更できるのみで、あまり変化を付けることができません。
Textgradでは自動でテキストにグラデーションをかけてくれます。

使用方法

Textgradからjquery.textgrad0.jsを、jQueryからjquery.jsをダウンロードします。
<script src="http://yourdomain/jquery.js" type="text/javascript"></script>
<script src="http://yourdomain/jquery.textgrad0.js" type="text/javascript"></script>

以上をhead内に書き込み以下で指定した要素内のテキストがグラデーションで装飾されます。
<script type="text/javascript">
$(document).ready(function() {
$('id名').textgrad({
begin:[255,0,0], //始まりの色(RGB)
end:[0,0,255], //終わりの色(RGB)
type:[o] //グラデーションタイプ(oは円、_は水平、|は垂直など)
});
}
)
</script>

サンプル

the class to be given to the spans generated. If you specify an empty string, the function will not bother adding classes. But if you want to unspanize the block later, you'd better give a spanClass to know what to remove...
Javascriptサンプルページ一覧
skuare.net