リンク毎に、次のように記述します。
<A HREF="リンク先URL">
<SPAN STYLE="color:red; background:white"
onMouseOver= "style.background='blue'"
onMouseOut= "style.background='white'">サンプル2</SPAN>
</A>
- STYLE="color:red;background:white":通常時の文字色と背景色
- onMouseOver="style.background='blue'":マウスを載せた時の背景色
- onMouseOut="style.background='white'":マウスが離れた時の背景色
ブラウザ対応表
ブラウザ | IE | Netscape | Opera
|
バージョン | 5.00 | 5.50 | 6.0 | 6.2.3 | 7.01 | 6.06 | 7.21
|
対応 | ○ | ○ | ○ | ○ | ○ | ○ | ○
|