CSS 3D 갤러리 소스
하단의 태그 중 이미지만 변경하시면 됩니다.
이미지를 클릭하시면 '클로즈업'되면서 지나갑니다.
< 예제 >
----------------- 소스 -------------------
<html>
<head>
<title>NestStep's Song' pics</title>
<style type="text/css">
#canvas {
position:absolute;
left: 0%;
top: 0%;
width: 100%;
height: 100%;
background: #000;
overflow: hidden;
}
#canvas img {
position: absolute;
background: #666;
overflow: hidden;
cursor: pointer;
left: 100%;
border-color: #000;
border-style: solid;
border-width: 1px;
}
#canvas span {
position: absolute;
color: #9C9;
font-family: 'courier new', typewriter, matrix, monospace;
font-size: 0px;
white-space: nowrap;
left: -1000px;
background:#010;
filter: alpha(opacity=90);
opacity:0.9;
}
</style>
<script type="text/javascript">
var O = [];
var cont = 0;
var N = 0;
var S = 0;
var img, spa;
var s = {xm:0, ym:0, nx:0, ny:0, nw:0, nh:0, cx:0, cy:0, zoom:1};
var c = {x:0, y:0, z:-40000, xt:0, yt:0, zt:0};
//////////////////////////////////////////////////////////////////////////////
function resize() {
with(document.getElementById("canvas")){
s.nx = offsetLeft;
s.ny = offsetTop;
s.nw = offsetWidth;
s.nh = offsetHeight;
s.zoom = s.nh / 700;
}
}
onresize = resize;
document.onmousemove = function(e){
if(window.event) e=window.event;
s.xm = (e.x || e.clientX) - s.nx - s.nw * .5;
s.ym = (e.y || e.clientY) - s.ny - s.nh * .5;
}
function CObj(n){
this.n = n;
this.x = s.zoom * Math.random() * s.nw * 2 - s.nw;
this.y = s.zoom * Math.random() * s.nh * 2 - s.nh;
this.z = Math.round(n * (10000 / N));
this.w = img[n].width;
this.h = img[n].height;
this.oxt = spa[n];
this.txt = spa[n].innerHTML;
this.oxt.innerHTML = "";
this.obj = img[n];
this.obj.parent = this;
this.obj.onclick = new Function("this.parent.click();");
this.obj.ondrag = new Function("return false;");
this.oxt.style.zIndex = this.obj.style.zIndex = Math.round(1000000 - this.z);
this.F = false;
this.CF = 100;
this.anim = function(){
with(this){
var f = 700 + z - c.z;
if (f > 0) {
var d = 1000 / f;
var X = s.nw * .5 + ((x - c.x - s.cx) * d);
var Y = s.nh * .5 + ((y - c.y - s.cy) * d);
var W = d * w * s.zoom;
var H = d * h * s.zoom;
with(obj.style){
left = Math.round(X - W * .5)+"px";
top = Math.round(Y - H * .5)+"px";
width = Math.round(W)+"px";
height = Math.round(H)+"px";
}
with(oxt.style){
visibility = (CF-- > 0 && Math.random() > .9)?"hidden":"visible";
left = Math.round(X - W * .5)+"px";
top = Math.round(Y + H * .5)+"px";
if((c.zt - c.z) < 20){
if(!F){
F = true;
CF = Math.random() * 200;
fontSize = 1 + Math.round(d * 20 * s.zoom)+"px";
var T = "";
var tn = txt.length;
for(var i=0; i<tn; i++){
T+=txt.charAt(i);
setTimeout('O['+n+'].oxt.innerHTML = "'+(T+"_")+'";', Math.round(f/5)+16*i);
}
}
} else F=false, oxt.innerHTML="";
}
} else {
x = s.zoom * Math.random() * s.nw * 2 - s.nw;
y = s.zoom * Math.random() * s.nh * 2 - s.nh;
z += 10000;
oxt.style.zIndex = obj.style.zIndex = Math.round(1000000 - z);
}
}
}
this.click = function(){
with(this){
if(S!=this){
c.xt = x;
c.yt = y;
c.zt = z;
S = this;
} else {
S = 0;
c.zt += 1600;
}
}
}
}
function run(){
s.cx += (s.xm - s.cx) / 10;
s.cy += (s.ym - s.cy) / 10;
c.x += (c.xt - c.x) / 20;
c.y += (c.yt - c.y) / 20;
c.z += (c.zt - c.z) / 20;
for(var i=0; i<N; i++) O[i].anim();
setTimeout("run();", 16);
}
onload = function() {
resize();
s.cx = s.nw / 2;
s.cy = s.nh / 2;
cont = document.getElementById("canvas");
img = document.getElementById("canvas").getElementsByTagName("img");
spa = document.getElementById("canvas").getElementsByTagName("span");
N = img.length;
for(var i=0; i<N; i++) O[i] = new CObj(i);
run();
O[0].click();
}
</script>
</head>
<body>
<div id="canvas">
<img src="http://cbingoimage.naver.com/data2/bingo_12/imgbingo_26/kmy0nagayo/24493/kmy0nagayo_10.jpg"><span>hi~~~~~~</span>
<img src="http://cafe.naver.com/ViewImage.nhn?img=http://cafefiles.naver.net/data21/2007/3/18/141/desting7_17.jpg"><span>Welcome to www.uplusweb.co.kr</span>
<img src="http://cbingoimage.naver.com/data3/bingo_82/imgbingo_29/mony87/29907/mony87_87.jpg"><span>Oh~~~~</span>
<img src="http://cbingoimage.naver.com/data3/bingo_5/imgbingo_45/tok888/24617/tok888_118.jpg"><span>Welcome</span>
<img src="http://cbingoimage.naver.com/data/bingo_92/imgbingo_92/kinisky/29847/kinisky_37.jpg"><span>llll</span>
<img src="http://cbingoimage.naver.com/data3/bingo_98/imgbingo_84/windyemail/30864/windyemail_13.jpg"><span>ttt</span>
<img src="http://cbingoimage.naver.com/data3/bingo_5/imgbingo_99/hanb5/29359/hanb5_12.jpg"><span>ttt</span>
<img src="http://cbingoimage.naver.com/data3/bingo_56/imgbingo_91/seulkee0926/37699/seulkee0926_27.jpg"><span>jjj</span>
<img src="http://cbingoimage.naver.com/data3/bingo_40/imgbingo_79/sashin60/37578/sashin60_4.jpg"><span>qqqqq</span>
<img src="http://cafe.naver.com/ViewImage.nhn?img=http://cafefiles.naver.net/data24/2006/5/30/192/%BC%DB%C7%FD%B1%B36.jpg"><span>aaaa</span>
<img src="http://cbingoimage.naver.com/data2/bingo_73/imgbingo_23/jomatt87/16032/jomatt87_4.jpg"><span>sss</span>
<img src="http://cafe.naver.com/ViewImage.nhn?img=http://cafefiles.naver.net/data8/2005/2/28/25/song.jpg"><span>ssssssssssss</span>
<img src="http://cafe.naver.com/ViewImage.nhn?img=http://cafefiles.naver.net/data7/2005/2/28/61/n2o_1412_59770_1.jpg"><span>ssssssssssss</span>
<img src="http://cafe.naver.com/ViewImage.nhn?img=http://cafefiles.naver.net/data8/2005/2/28/296/haegyo.jpg"><span>ssssssssssss</span>
<img src="http://cafe.naver.com/ViewImage.nhn?img=http://cafefiles.naver.net/data8/2005/2/28/28/17.jpg"><span>ssssssssssss</span>
<img src="http://cafe.naver.com/ViewImage.nhn?img=http://cafefiles.naver.net/data7/2005/2/28/297/41808-jinistars.jpg"><span>ssssssssssss</span>
</div>
</body>
</html>
------------ 소스 끝 -----------------------
댓글 2개
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 1730 | 17년 전 | 1182 | ||
| 1729 | 17년 전 | 1612 | ||
| 1728 | 17년 전 | 1678 | ||
| 1727 | 17년 전 | 1816 | ||
| 1726 | 17년 전 | 2953 | ||
| 1725 | 17년 전 | 2092 | ||
| 1724 |
|
17년 전 | 1769 | |
| 1723 |
끝없는사랑
|
17년 전 | 2113 | |
| 1722 |
끝없는사랑
|
17년 전 | 1821 | |
| 1721 | 17년 전 | 3349 | ||
| 1720 | 17년 전 | 1532 | ||
| 1719 | 17년 전 | 1649 | ||
| 1718 |
사랑합니다
|
17년 전 | 1368 | |
| 1717 | 17년 전 | 2188 | ||
| 1716 | 17년 전 | 3141 | ||
| 1715 |
|
17년 전 | 2275 | |
| 1714 |
|
17년 전 | 1734 | |
| 1713 | 17년 전 | 2992 | ||
| 1712 | 17년 전 | 4425 | ||
| 1711 | 17년 전 | 1738 | ||
| 1710 | 17년 전 | 3240 | ||
| 1709 |
jeans
|
17년 전 | 1566 | |
| 1708 |
|
17년 전 | 3475 | |
| 1707 | 17년 전 | 5841 | ||
| 1706 |
|
17년 전 | 1420 | |
| 1705 |
|
17년 전 | 2158 | |
| 1704 | 17년 전 | 1791 | ||
| 1703 |
심심맨닷컴
|
17년 전 | 1552 | |
| 1702 | 17년 전 | 2425 | ||
| 1701 |
|
17년 전 | 2626 | |
| 1700 | 17년 전 | 1600 | ||
| 1699 | 17년 전 | 2682 | ||
| 1698 |
RedRiverFisher
|
17년 전 | 3170 | |
| 1697 |
심심맨닷컴
|
17년 전 | 1528 | |
| 1696 |
eclub
|
17년 전 | 1940 | |
| 1695 | 17년 전 | 3847 | ||
| 1694 |
깜장고무신
|
17년 전 | 4478 | |
| 1693 |
stuartkim
|
17년 전 | 1883 | |
| 1692 |
stuartkim
|
17년 전 | 1751 | |
| 1691 |
|
17년 전 | 2678 | |
| 1690 | 17년 전 | 1845 | ||
| 1689 | 17년 전 | 3933 | ||
| 1688 | 17년 전 | 1656 | ||
| 1687 | 16년 전 | 1930 | ||
| 1686 |
|
17년 전 | 2258 | |
| 1685 | 17년 전 | 2106 | ||
| 1684 |
|
17년 전 | 3571 | |
| 1683 |
leeLook
|
17년 전 | 1592 | |
| 1682 | 17년 전 | 2654 | ||
| 1681 | 17년 전 | 1644 | ||
| 1680 | 17년 전 | 1907 | ||
| 1679 | 17년 전 | 7420 | ||
| 1678 | 17년 전 | 1996 | ||
| 1677 | 17년 전 | 4093 | ||
| 1676 | 17년 전 | 2416 | ||
| 1675 | 17년 전 | 2426 | ||
| 1674 | 17년 전 | 2150 | ||
| 1673 | 17년 전 | 2197 | ||
| 1672 | 17년 전 | 2626 | ||
| 1671 | 17년 전 | 3218 | ||
| 1670 | 17년 전 | 5329 | ||
| 1669 |
플래시007
|
17년 전 | 2785 | |
| 1668 |
|
17년 전 | 2697 | |
| 1667 | 17년 전 | 2550 | ||
| 1666 |
|
17년 전 | 1796 | |
| 1665 | 17년 전 | 2206 | ||
| 1664 | 17년 전 | 5306 | ||
| 1663 |
|
17년 전 | 3023 | |
| 1662 |
|
17년 전 | 2580 | |
| 1661 |
|
17년 전 | 3256 | |
| 1660 |
|
17년 전 | 2473 | |
| 1659 |
|
17년 전 | 2829 | |
| 1658 | 17년 전 | 5878 | ||
| 1657 | 17년 전 | 2633 | ||
| 1656 |
Piece
|
17년 전 | 2018 | |
| 1655 |
|
17년 전 | 2653 | |
| 1654 | 17년 전 | 1475 | ||
| 1653 | 17년 전 | 9799 | ||
| 1652 | 17년 전 | 4460 | ||
| 1651 | 17년 전 | 3288 | ||
| 1650 | 17년 전 | 1812 | ||
| 1649 | 17년 전 | 3603 | ||
| 1648 | 17년 전 | 2286 | ||
| 1647 | 17년 전 | 3733 | ||
| 1646 | 17년 전 | 5188 | ||
| 1645 | 17년 전 | 3846 | ||
| 1644 | 17년 전 | 2700 | ||
| 1643 | 17년 전 | 2946 | ||
| 1642 | 18년 전 | 2451 | ||
| 1641 | 18년 전 | 2792 | ||
| 1640 |
porgy
|
18년 전 | 1900 | |
| 1639 | 18년 전 | 3451 | ||
| 1638 |
컴퓨터기술자
|
18년 전 | 2141 | |
| 1637 |
|
18년 전 | 2259 | |
| 1636 | 18년 전 | 2074 | ||
| 1635 | 18년 전 | 3048 | ||
| 1634 |
귀여운현호
|
18년 전 | 1997 | |
| 1633 |
태양의서쪽
|
18년 전 | 2672 | |
| 1632 | 18년 전 | 3873 | ||
| 1631 | 18년 전 | 4569 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기