マーキーにfilterを設定
マーキーにGlowフィルターを設定。onbounceイベントで折り返しの度に発行色を変化させている。
マーキーにGlowフィルターを設定。onbounceイベントで折り返しの度に発行色を変化させている。
Sample Source......................................................................>>>
<script language="JavaScript"><!--
var colors=new Array("red","pink","yellow","green","blue","black",
"gray","lime","magenta"); //色の配列を作成
var i = 0;
function ChangeGlow(){
mq.filters.glow.Color = colors[i++];
if(i >= colors.length)i = 0;
}
//--></script>
</head>
<body>
<marquee id="mq" style="width:90%;height:30;font:30;
filter:glow(Color=magenta,Strength=5);"
direction="right" behavior="alternate" scrollamount="4"
onbounce="ChangeGlow()">
<img src="../../images/anime/16.gif" width="40" height="60">
Marquee + Filter
</marquee>
end(最終更新:12/11/7)