﻿/*Flash无虚框显示*/
function flash(url,width,height) {
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+width+'" height="'+height+'">');
    document.write('<param name="movie" value="'+url+'" />');
    document.write('<param name="quality" value="high" />');
    document.write('<param name="wmode" value="opaque" />');
    document.write('<embed src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>');
    document.write('</object>');
}
/*Png透明显示*/
function isIE(){
if (navigator.appName!="Microsoft Internet Explorer") {return false}
return true
} 
function correctPNG() 
{
   for(var i=0; i<document.images.length; i++)
   {
   var img = document.images[i]
   var LW=img.width
   var LH=img.height
   var imgName = img.src.toUpperCase()
   if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
   { 
         img.style.filter+="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+img.src+", sizingmethod=scale);"
         img.src="images/1px.gif"//1px.gif为1px*1px的透明gif图片
         img.width=LW
         img.height=LH
   }
   }
}
if (isIE()) {window.attachEvent("onload", correctPNG);}
