Javascript Raphael填充member.mouseover上的不透明度

Javascript Raphael填充member.mouseover上的不透明度,javascript,raphael,vml,Javascript,Raphael,Vml,我使用生成了一个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(fu

我使用生成了一个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'});
和其他类似的变化,但没有成功。你知道我需要在这里做什么吗


谢谢

您需要的是数字,而不是颜色。

也许是这样的:

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

显然,VML没有填充不透明性。IE8用户只需查看VML的纯色即可:P

这是我尝试的第一件事。不起作用。我想这可能是罪魁祸首。除了ofill的不透明度,可能还有另一个变量