I have a bug in the fading code for IE6

it is triggered in the function attr

on line 1587

>> return elem.filter ? (parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) 
>> / 100).toString() : "";

elem.filter is actually

>> ""progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='/images/pieces/classic/wp.png')""

so

>> elem.filter.match(/opacity=([^)]*)/) is null

so null[1] throws an error


i fixed by changing to  :

return elem.filter ?
(parseFloat( (elem.filter.match(/opacity=([^)]*)/) || ["100"]) [1] ) /
100).toString() : "";

Reply via email to