DHTML Image Thumbnail Chooser

· 17년 전 · 1778
<style>
body {
        background-color:#000000;
        color:#E27907;
        font-family:Verdana,Arial;
        font-size:10pt;
        letter-spacing:2;
}
.thumbNormal {
        border:4px solid #000000;
        cursor: pointer;
}
.thumbSelected {
        border:4px solid #ff0000;
}
</style>

<script language="JavaScript" type="text/javascript">
var lastID = 0;
function SelectImg(id) {
        if (lastID > 0)
                document.getElementById(lastID).className = "thumbNormal";
        document.getElementById(id).className = "thumbSelected";
        regex = /_tn/;
        document.getElementById(0).src = document.getElementById(id).src.replace(regex, ");
        lastID = id;
}
function LoadTrigger() {
        SelectImg(1);
}
window.onload = LoadTrigger;
</script>

Click a photo on the left to view full image.
<table border="0">
  <tr>
    <td valign="top"><img id="1" class="thumbNormal" src="/images/family_tn.jpg" width="100" height="50" onclick="SelectImg(1)" /> <br />
      <img id="2" class="thumbNormal" src="/images/ourdog_tn.jpg" width="100" height="50" onclick="SelectImg(2)" /> <br />
      <img id="3" class="thumbNormal" src="/images/fish_tn.jpg" width="100" height="50" onclick="SelectImg(3)" /></td>
    <td width="15"></td>
    <td valign="top"><img id="0" src="" /></td>
  </tr>
</table>
[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]
|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

프로그램

+
제목 글쓴이 날짜 조회
17년 전 조회 1,601
17년 전 조회 1,575
17년 전 조회 1,446
17년 전 조회 2,560
17년 전 조회 2,324
17년 전 조회 2,105
17년 전 조회 1,414
17년 전 조회 2,427
17년 전 조회 4,249
17년 전 조회 2,739
17년 전 조회 1,659
17년 전 조회 1,853
17년 전 조회 3,230
17년 전 조회 2,231
17년 전 조회 3,826
17년 전 조회 1,674
17년 전 조회 2,270
17년 전 조회 2,100
17년 전 조회 1,615
17년 전 조회 2,130
17년 전 조회 1,926
17년 전 조회 1,962
17년 전 조회 3,075
17년 전 조회 2,149
17년 전 조회 1,437
17년 전 조회 1,461
17년 전 조회 2,126
17년 전 조회 3,203
17년 전 조회 2,139
17년 전 조회 1,531
17년 전 조회 4,236
17년 전 조회 2,025
17년 전 조회 3,457
17년 전 조회 6,032
17년 전 조회 1,484
17년 전 조회 1,654
17년 전 조회 1,236
17년 전 조회 1,348
17년 전 조회 2,870
17년 전 조회 1,907
17년 전 조회 2,592
17년 전 조회 1,301
17년 전 조회 3,178
17년 전 조회 2,160
17년 전 조회 2,603
17년 전 조회 1,405
17년 전 조회 1,754
17년 전 조회 1,150
17년 전 조회 1,206
17년 전 조회 1,779
17년 전 조회 1,224
17년 전 조회 4,304
17년 전 조회 1,501
17년 전 조회 2,002
17년 전 조회 7,089
17년 전 조회 1,378
17년 전 조회 1,895
17년 전 조회 3,125
17년 전 조회 1,223
17년 전 조회 1,982
17년 전 조회 1,155
17년 전 조회 1,852
17년 전 조회 2,150
17년 전 조회 2,961
17년 전 조회 1,240
17년 전 조회 1,329
17년 전 조회 1,556
17년 전 조회 1,224
17년 전 조회 4,355
17년 전 조회 3,898
17년 전 조회 2,787
17년 전 조회 1,590
17년 전 조회 1,335
17년 전 조회 1,603
17년 전 조회 2,520
17년 전 조회 1,734
17년 전 조회 2,017
17년 전 조회 1,306
17년 전 조회 1,039
17년 전 조회 1,120
17년 전 조회 2,924
17년 전 조회 2,460
17년 전 조회 2,041
17년 전 조회 2,042
17년 전 조회 1,794
17년 전 조회 2,240
17년 전 조회 2,013
17년 전 조회 1,986
17년 전 조회 1,874
17년 전 조회 1,209
17년 전 조회 1,825
17년 전 조회 2,228
17년 전 조회 2,300
17년 전 조회 1,639
17년 전 조회 1,509
17년 전 조회 1,357
17년 전 조회 2,576
17년 전 조회 2,671
17년 전 조회 2,068
17년 전 조회 2,414
🐛 버그신고