IE6.0及以下版本PNG透明图片不透明解决方案


/*
Correctly handle PNG transparency in Win IE 5.5 & 6.
Copyright 2007 Ignia, LLC
Based in part on code from from http://homepage.ntlworld.com/bobosola.
Edit: Jena.want
Date: 2008.11.30
Web: www.AOBODO.com | www.IsHere.cn

Use in with DEFER keyword wrapped in conditional comments:

*/

(function fixPng() {
var arVersion = navigator.appVersion.split(“MSIE”)
var version = parseFloat(arVersion[1])

if ((version >= 5.5 && version < 7.0) && (document.body.filters)) {
for(var i=0; i
var img = document.images[i];
var imgName = img.src.toUpperCase();
if (imgName.indexOf(“.PNG”) > 0) {
var width = img.width;
var height = img.height;
var sizingMethod = (img.className.toLowerCase().indexOf(“scale”) >= 0)? “scale” : “image”;
img.runtimeStyle.filter = “progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’” + img.src.replace(‘%23′, ‘%2523′).replace(“‘”, “%27″) + “‘, sizingMethod=’” + sizingMethod + “‘)”;
img.src = “images/blank.gif”;
img.width = width;
img.height = height;
}
}
}
})();

这是打好包的文件,需要的朋友可以下载试试。msiepng

另外,如果PNG图片做背景的话,在IE6下也会出现不透明情况,以上脚本只解决了页面中的PNG图片透明,如果是CSS样式中使用了透明的PNG图片,则可以使用以下方案解决透明问题,利用了只有 IE6 才识别的下划线(_),来定义 IE6 浏览器中的滤镜:

#png {
background: url(绝对路径/images/bg.png) repeat;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=’true’, sizingMethod=’scale’, src=”绝对路径/images/bg.png”);
_background:none;
}

BUY.MaiMaiJ.com-基于买卖街批发订单管理系统的新型B2C网站!

buy.maimaij.com

buy.maimaij.com

Buy.MaiMaiJ.com is a professional wholesale website in China, dedicating itself to build a worldwide wholesale shop online.

Our site is aiming to operate the B-to-C transactions with consumers from all over the world. The biggest superiority of our site is applying the system MaiMaiJ (http://www.MaiMaiJ.com), It can provide global sellers and buyers with easier methods for processing and managing wholesale orders.

Our slogan is “Buy Wholesale Products from Chinese Wholesaler”, using Buy.MaiMaiJ.com, the buyers can submit orders online and the sellers manage orders easily, without handwork, Emails and Faxes.

You can get what you like on this website at wholesale prices. We sell a vast range of merchandise produced exclusively by Chinese manufacturers. If you like to hunt for something special at low price by fashionable online shopping, then use Buy.MaiMaiJ.com to purchase various kinds products you are interested in.

http://buy.maimaij.com/links.html

http://buy.maimaij.com/links-add.html

JS判断客户端是否安装了MSN,Skype,QQ软件








测试环境:WIN SERVER 2008,IE6+,Firefox2.0+,Opera,Chorme

PclZip简介与使用[转]

PclZip介绍
PclZip library能够压缩与解压缩Zip格式的压缩档(WinZip、PKZIP);且能对此类类档案进行处理,包括产生压缩档、列出压缩档的内容以及解压缩档案等等。由于能够在伺服器端进行压缩与解压缩的动作,所以相当方便使用。
PclZip定义一个PclZip类别,其类别物件可视为一个ZIP档案,亦提供method来进行处理。

如何使用PclZip
1.基础
所有的功能都由pclzip.lib.php这个档案提供,PclZip library可于其首页(www.phpconcept.net/pclzip/index.en.php)下载,(PS:但是目前打不开了,我上传了一个文件class-pclzip)。所有的PKZIP档案其实就是一个 PclZip的类别物件。当产生一个PclZip档案(ie, PclZip类别物件),就会先产生一个压缩档,且档名已经指定,但此压缩档的内容尚未存在:


< ?PHP
require_once('pclzip.lib.php');
$archive = new PclZip("archive.zip");
?>

此物件提供了一些public method可用来处理此档案。
Continue reading