| 꽤 오래된 이슈이기는 하지만... 이렇게 깔끔하게 처리되는 1KB 짜리 스크립트가 있다. http://labs.unitinteractive.com/unitpngfix.php 다운로드받아 열어보면 clear.gif 와 unipngfix.js 딸랑 두개다. <script type="text/javascript" src="unitpngfix.js"></script> unitpngfix.js 안에 보면 image 위치가 있는데 맞춰줘야 한다. 윈도우 onload 시에 실행되도록 하고 있지만 계속 변하는 이미지(동적으로)의 경우 회색으로 다시 되어버린다. 그럴때는 prefix() 를 다시 수행해주면 문제를 해결할수 있다. |
Posted on 2008/12/31 09:28
Filed Under Development/HTML/Javascript