이미지 좌우로 이동 갤러리 정보
기타 이미지 좌우로 이동 갤러리본문
<table border=1>
<tr>
<td width="100">
<center>
<img name="chimg" src="1.gif"/>
</center>
</td>
</tr>
<tr>
<td><center>
<a href="javascript:preimg();">◀</a>
<a href="javascript:nextimg();">▶</a>
</center></td>
</tr>
</table>
</form>
<tr>
<td width="100">
<center>
<img name="chimg" src="1.gif"/>
</center>
</td>
</tr>
<tr>
<td><center>
<a href="javascript:preimg();">◀</a>
<a href="javascript:nextimg();">▶</a>
</center></td>
</tr>
</table>
</form>
<script>
first =0;
function preimg(){
if( first<=0)return;
else{
first --;
document.test.chimg.src=first+".gif";
}
}
function nextimg(){
first++;
document.test.chimg.src=first+".gif";
}
</script>
</form>
[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]
추천
2
2
댓글 0개