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개
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 1530 |
1111111
|
18년 전 | 1953 | |
| 1529 |
행복속네잎크로버
|
18년 전 | 3452 | |
| 1528 |
행복속네잎크로버
|
18년 전 | 1831 | |
| 1527 |
1111111
|
18년 전 | 7639 | |
| 1526 |
1111111
|
18년 전 | 3285 | |
| 1525 |
행복속네잎크로버
|
18년 전 | 1269 | |
| 1524 |
행복속네잎크로버
|
18년 전 | 2301 | |
| 1523 |
행복속네잎크로버
|
18년 전 | 3502 | |
| 1522 |
행복속네잎크로버
|
18년 전 | 2359 | |
| 1521 |
행복속네잎크로버
|
18년 전 | 2133 | |
| 1520 |
행복속네잎크로버
|
18년 전 | 2762 | |
| 1519 |
행복속네잎크로버
|
18년 전 | 3719 | |
| 1518 |
행복속네잎크로버
|
18년 전 | 3484 | |
| 1517 |
행복속네잎크로버
|
18년 전 | 2564 | |
| 1516 |
행복속네잎크로버
|
18년 전 | 1911 | |
| 1515 |
행복속네잎크로버
|
18년 전 | 1929 | |
| 1514 |
행복속네잎크로버
|
18년 전 | 2507 | |
| 1513 |
행복속네잎크로버
|
18년 전 | 1981 | |
| 1512 | 18년 전 | 2868 | ||
| 1511 | 18년 전 | 1662 | ||
| 1510 | 18년 전 | 2206 | ||
| 1509 | 18년 전 | 1680 | ||
| 1508 | 18년 전 | 2137 | ||
| 1507 | 18년 전 | 2357 | ||
| 1506 | 18년 전 | 2295 | ||
| 1505 | 18년 전 | 2247 | ||
| 1504 | 18년 전 | 2176 | ||
| 1503 | 18년 전 | 3484 | ||
| 1502 | 18년 전 | 1667 | ||
| 1501 | 18년 전 | 3441 | ||
| 1500 | 18년 전 | 2023 | ||
| 1499 | 18년 전 | 5294 | ||
| 1498 | 18년 전 | 2152 | ||
| 1497 |
hsp1980
|
18년 전 | 2333 | |
| 1496 |
hsp1980
|
18년 전 | 1725 | |
| 1495 |
hsp1980
|
18년 전 | 2132 | |
| 1494 |
hsp1980
|
18년 전 | 3647 | |
| 1493 | 18년 전 | 1500 | ||
| 1492 | 18년 전 | 1742 | ||
| 1491 | 18년 전 | 4319 | ||
| 1490 | 18년 전 | 3703 | ||
| 1489 | 18년 전 | 3263 | ||
| 1488 | 18년 전 | 3365 | ||
| 1487 |
mixdesign
|
18년 전 | 3865 | |
| 1486 |
mixdesign
|
18년 전 | 4325 | |
| 1485 | 18년 전 | 4248 | ||
| 1484 | 18년 전 | 2700 | ||
| 1483 |
hsp1980
|
18년 전 | 2309 | |
| 1482 |
hsp1980
|
18년 전 | 3245 | |
| 1481 |
hsp1980
|
18년 전 | 3163 | |
| 1480 |
hsp1980
|
18년 전 | 3317 | |
| 1479 | 18년 전 | 3256 | ||
| 1478 |
|
18년 전 | 4921 | |
| 1477 |
|
18년 전 | 5207 | |
| 1476 | 18년 전 | 3406 | ||
| 1475 |
mixdesign
|
18년 전 | 2718 | |
| 1474 |
mixdesign
|
18년 전 | 2939 | |
| 1473 |
mixdesign
|
18년 전 | 2266 | |
| 1472 |
mixdesign
|
18년 전 | 2085 | |
| 1471 |
mixdesign
|
18년 전 | 2037 | |
| 1470 |
|
18년 전 | 3073 | |
| 1469 |
mixdesign
|
18년 전 | 2355 | |
| 1468 |
mixdesign
|
18년 전 | 2373 | |
| 1467 |
mixdesign
|
18년 전 | 2051 | |
| 1466 |
mixdesign
|
18년 전 | 2419 | |
| 1465 |
mixdesign
|
18년 전 | 3152 | |
| 1464 | 18년 전 | 4082 | ||
| 1463 | 18년 전 | 3372 | ||
| 1462 |
|
18년 전 | 1998 | |
| 1461 |
|
18년 전 | 1940 | |
| 1460 | 18년 전 | 2857 | ||
| 1459 | 18년 전 | 1651 | ||
| 1458 |
|
18년 전 | 2003 | |
| 1457 |
mixdesign
|
18년 전 | 2295 | |
| 1456 |
mixdesign
|
18년 전 | 2157 | |
| 1455 | 18년 전 | 2265 | ||
| 1454 | 18년 전 | 4036 | ||
| 1453 | 18년 전 | 1773 | ||
| 1452 | 18년 전 | 4390 | ||
| 1451 | 18년 전 | 2922 | ||
| 1450 | 18년 전 | 2217 | ||
| 1449 | 18년 전 | 3267 | ||
| 1448 | 18년 전 | 2896 | ||
| 1447 | 18년 전 | 2825 | ||
| 1446 | 18년 전 | 5628 | ||
| 1445 | 18년 전 | 2291 | ||
| 1444 | 18년 전 | 3408 | ||
| 1443 |
|
18년 전 | 3323 | |
| 1442 | 18년 전 | 3711 | ||
| 1441 | 18년 전 | 3262 | ||
| 1440 | 18년 전 | 2441 | ||
| 1439 | 18년 전 | 2088 | ||
| 1438 | 18년 전 | 2542 | ||
| 1437 | 18년 전 | 6110 | ||
| 1436 | 18년 전 | 2732 | ||
| 1435 | 18년 전 | 4545 | ||
| 1434 | 18년 전 | 2041 | ||
| 1433 | 18년 전 | 10032 | ||
| 1432 | 18년 전 | 2477 | ||
| 1431 |
Psychedelico
|
18년 전 | 1544 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기