74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# File 'lib/smklib/builder_ext.rb', line 74
def img(options = {})
if get_ua =~ /MSIE 6.*Windows/
if options[:src] =~ /\.png$/
options[:style] = "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='#{options[:src]}', sizingMethod='scale');" + options[:style].to_s
options[:width], options[:height] = get_img_size(options[:src]) unless options[:width] && options[:height]
options[:src] = '/images/spacer.gif'
end
end
if block_given?
method_missing(:img, options, yield)
else
method_missing(:img, options)
end
end
|