This repository has been archived by the owner on Jul 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathindex.html
executable file
·52 lines (51 loc) · 1.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta name="Description" content="" />
<meta name="Keywords" content="" />
<title>jquery.belatedPNG.js サンプル</title>
<style type="text/css">
/* <![CDATA[ */
div#pngfix,
div#normal {
width: 400px;
height: 400px;
background: url(test.png) repeat;
float: left;
}
/* ]]> */
</style>
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/jquery.belatedPNG.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
(function($) {
$(function() {
$("#pngfix").fixPng();
$("input[type='button']").click(function() {
$("#pngfix, #normal").animate({opacity: "toggle"});
});
});
})(jQuery);
//]]>
</script>
</head>
<body>
<h1>jquery.belatedPNG.js</h1>
<h2>本家(<a href="http://www.dillerdesign.com/experiment/DD_belatedPNG/">DD_belatedPNG</a>)からの変更点</h2>
<ul>
<li>jquery 用のプラグインに変更</li>
<li>IE7/8 も pngFIx が可能に(アルファチャンネル+半透明で起きるバグに対処)</li>
<li>ズームに対応</li>
</ul>
<h3>IE6/7/8 用サンプル</h3>
<p>左が何もしていない状態、右が jquery.belatedPNG 使用後</p>
<p><input type="button" value="フェードイン・アウトテスト" /></p>
<div id="normal"></div>
<div id="pngfix"></div>
</body>
</html>