

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="ja" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<title>jquery.pngFix.js | 設置サンプル</title>
<link rel="stylesheet" type="text/css" href="/content/lib/global.css" />
<!-- JS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript" src="/content/lib/jquery/jquery.pngFix.js"></script>
<script type="text/javascript">
$(function(){
$('#wrap').pngFix( );
});
</script>
<link rel="stylesheet" type="text/css" href="/common/css/example.css"></head>
<body id='example3' class='example'><div class="ads" style="margin:32px auto;text-align:center;"></div><h1 class='h'><a href='/'>PHP & JavaScript Room</a> :: 設置サンプル</h1>
<h3 class='h'>実行結果</h3>
<div id="wrap">
<h1><a href='http://jquery.andreaseberhard.de/pngFix/'>jquery.pngFix.js</a> | 設置サンプル</h1>
<!-- CODE -->
<h2>alt属性ありのPNG</h2>
<p><img src="/content/img/dog_white.png" alt="適用後" /></p>
<h2>alt+title属性ありのPNG</h2>
<p><img src="/content/img/dog_white.png" alt="適用前" title="This is the title-Text" /></p>
<h2>リンク付きのPNG</h2>
<p><a href="#" onclick="alert('click!');return false;"><img src="/content/img/dog_white.png" alt="適用前" title="This is the title-Text" /></a></p>
<h2>リンクとstyle属性ありのPNG</h2>
<p><a href="#" onclick="alert('click!');return false;"><img src="/content/img/dog_white.png" alt="適用前" title="This is the title-Text" /></a></p>
<h2>CSSで背景画像としてPNGを指定</h2>
<div class="cf">
<div style="float:left;width:180px;height:180px;background:transparent url(/content/img/dog_white.png) repeat 0 0;">
This is a div-Container using a png as background ...
</div>
<div style="float:left;width:180px;height:180px;margin:0 0 0 10px;background:#fff url(/content/img/dog_white.png) repeat 0 0;">
This is a div-Container using a png as background ...
</div>
<div style="clear:both;"></div>
</div>
<h2>画像ボタンにPNGを指定</h2>
<form>
<input type="image" src="/content/img/dog_white.png" width="90" height="90" />
</form>
<!-- / CODE -->
</div>
</body>
</html>