0

http://www.irunmywebsite.com/raphael/SVGTOHTML_LIVE90.phpを使用して VML ファイルを生成しました。VML ファイルには、イベントを決定するコールバック関数セクションがあります。

function callback(member)
{
   member.mouseover(function (e) {  this.ofill=this.attr('fill');this.attr({fill:'#000000'}); });
   member.mouseout(function (e) { this.attr({fill:this.ofill}); });
   member.click(function (e) { var thisPath=this.attr('path');alert('You just clicked on Element #'+this.id+'.To help you find it in the code its path starts with......'+thisPath);   });
}

ご覧のとおり、最初の行はホバーした VML 形状を黒で塗りつぶしています。私ができるようにしたいのは、代わりに塗りつぶしの不透明度を変更することです。

私はもう試した:

this.ofill=this.attr('fill');this.attr({fill-opacity:'#000000'});

および成功しない他の同様のバリエーション。ここで何をする必要があるか考えていますか?

ありがとう

4

2 に答える 2