DHTML Image Thumbnail Chooser

· 17년 전 · 1773
<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,597
17년 전 조회 1,570
17년 전 조회 1,443
17년 전 조회 2,556
17년 전 조회 2,319
17년 전 조회 2,099
17년 전 조회 1,409
17년 전 조회 2,423
17년 전 조회 4,245
17년 전 조회 2,734
17년 전 조회 1,655
17년 전 조회 1,850
17년 전 조회 3,227
17년 전 조회 2,229
17년 전 조회 3,823
17년 전 조회 1,670
17년 전 조회 2,267
17년 전 조회 2,096
17년 전 조회 1,612
17년 전 조회 2,126
17년 전 조회 1,923
17년 전 조회 1,959
17년 전 조회 3,072
17년 전 조회 2,146
17년 전 조회 1,435
17년 전 조회 1,458
17년 전 조회 2,123
17년 전 조회 3,199
17년 전 조회 2,133
17년 전 조회 1,525
17년 전 조회 4,231
17년 전 조회 2,020
17년 전 조회 3,452
17년 전 조회 6,026
17년 전 조회 1,482
17년 전 조회 1,652
17년 전 조회 1,231
17년 전 조회 1,343
17년 전 조회 2,867
17년 전 조회 1,904
17년 전 조회 2,590
17년 전 조회 1,298
17년 전 조회 3,176
17년 전 조회 2,158
17년 전 조회 2,600
17년 전 조회 1,401
17년 전 조회 1,749
17년 전 조회 1,145
17년 전 조회 1,201
17년 전 조회 1,774
17년 전 조회 1,219
17년 전 조회 4,300
17년 전 조회 1,495
17년 전 조회 1,998
17년 전 조회 7,085
17년 전 조회 1,373
17년 전 조회 1,890
17년 전 조회 3,121
17년 전 조회 1,219
17년 전 조회 1,979
17년 전 조회 1,151
17년 전 조회 1,849
17년 전 조회 2,148
17년 전 조회 2,960
17년 전 조회 1,238
17년 전 조회 1,327
17년 전 조회 1,554
17년 전 조회 1,220
17년 전 조회 4,353
17년 전 조회 3,896
17년 전 조회 2,784
17년 전 조회 1,587
17년 전 조회 1,331
17년 전 조회 1,598
17년 전 조회 2,514
17년 전 조회 1,729
17년 전 조회 2,013
17년 전 조회 1,302
17년 전 조회 1,033
17년 전 조회 1,117
17년 전 조회 2,920
17년 전 조회 2,458
17년 전 조회 2,039
17년 전 조회 2,039
17년 전 조회 1,792
17년 전 조회 2,238
17년 전 조회 2,010
17년 전 조회 1,982
17년 전 조회 1,871
17년 전 조회 1,207
17년 전 조회 1,823
17년 전 조회 2,226
17년 전 조회 2,296
17년 전 조회 1,637
17년 전 조회 1,506
17년 전 조회 1,354
17년 전 조회 2,573
17년 전 조회 2,669
17년 전 조회 2,066
17년 전 조회 2,411
🐛 버그신고