사이트 내 전체검색
png 투명 이미지로 사용할 수 있다. IE6.0 버젼에서는 fiter를 사용해야 png의 특징을 살려서 사용할수 있다.
로빈아빠
https://cmd.kr/javascript/167 URL이 복사되었습니다.

본문

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> eyes of siche </title>
</head>

<body>
<script type="text/javascript">
<!--
    function setPng24(obj) {
        obj.width=obj.height=1;
        obj.className=obj.className.replace(/\bpng24\b/i,'');
        obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+obj.src+"',sizingMethod='image');"
        obj.src='';
        return '';
    }
//-->
</script>
<style type="text/css">
    body { background: yellow; }
    .png24 { tmp: expression(setPng24(this)); }
</style>
<img src="http://eos.pe.kr/ex/png/png.png" class="png24">
</body>
</html>

댓글목록

등록된 댓글이 없습니다.

831 (17/17P)

Search

Copyright © Cmd 명령어 3.135.194.15