IE:
//IE 7 and 8
button.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod = 'image',src='"+imageURL+"')";
//IE 6
image.src = imageURL;
Note:imageUrl is your path of image, button is the element specilized ,for example , div ,image is the Image object
FF:
use the tool as below to convert the image to base64 format and replace the 'imageURL'
tool:
http://www.abluestar.com/utilities/encode_base64/index.php
code:
image.src='https://img-blog.csdnimg.cn/2022010820342925040.png';
Note:You should checkt the base64 whether can be displayed in the Fire fox before you quote it