ȸ¿ø°¡ÀԡžÆÀ̵ð/ºñ¹øã±â
ȨÀ¸·Î


µð·ºÅ丮¿¡ ÀÖ´Â À̹ÌÁö ÆÄÀÏÀ» Àоîµé¿© º¸¿©ÁÖ´Â À̹ÌÁö °¶·¯¸®
12³â Àü
<?
### 2001.12.11
### imgSlidev2.php
### copyleft to kindsome(kindsome@intizen.com, kindsome.net)
### »ç¿ëÇÏ½Ç ¶§ ÃâóÁ¤µµ¸¸ÀÌ¶óµµ ¹àÇô ÁÖ¼¼¿ä


$dir=opendir(".") ;
$count = 0 ;
while($file = readdir($dir)){
$the_type = strrchr($file, ".");
$is_picture = eregi("jpg|gif|bmp|png",$the_type);

if($file != "." and $file != ".." and $is_picture) {
$slide[$count] = $file;
$count++;
}
}
closedir($dir);

?>

<html>
<head>
<title> :: À̹ÌÁö °¶·¯¸® :: </title>

<STYLE type="text/css">

.ver9 { color:; font-family:tahoma; font-size:9pt}
.input {border:solid 1 black; font-family:Tahoma; font-size:8pt; color:white; background-color:8c8c8c; width:80px; height:18px}

</STYLE>

<script language="JavaScript">
<!--
<?
// php¹è¿­À» ¸¶Áö¸· ¹è¿­¿ä¼Ò¸¸ Á¦¿ÜÇÑ ³ª¸ÓÁö¸¦ javascript¹è¿­·Î º¯È¯
print(" var imagearray = new Array(");
for ($i=0; $i < ($count-1); $i++) { print(""" . $slide[$i] . "", "); }

// ¸¶Áö¸· ¹è¿­¿ä¼Ò
print(""" . $slide[$count-1] . "");n");
?>

var i = 0;
var imgstring = new Array ;
var maximum = imagearray.length-1 ;
for (i=0; i < maximum; i++) {
imgstring[i] = new Image() ;
imgstring[i].src = imagearray[i] ;
}


//³×ºñ°ÔÀÌ¼Ç ÇÔ¼ö ½ÃÀÛ
function gallery(){
if (i == 0){
document.gallery.previous.value=" " ;
document.img.src = imagearray[i] ;
}
}

function previmg(){
if (i != 0) {
i -- ;
document.img.src = imagearray[i] ;
document.gallery.next.value = "Next"; }
if (i == 0) {
document.gallery.previous.value=" " ;
}
}

function nextimg(){
if (i != maximum ) {
i ++ ;
document.gallery.previous.value="Previous" ;
document.img.src = imagearray[i] ;
}

if (i == maximum){
document.gallery.next.value=" ";
}
}

function firstimg(){
i = 0 ;
document.img.src = imagearray[i] ;
document.gallery.previous.value=" ";
document.gallery.next.value="Next";
}

function lastimg(){
i = maximum ;
document.img.src = imagearray[i] ;
document.gallery.next.value=" " ;
document.gallery.previous.value="Previous" ;
}




-->
</script>

</head>


<body onLoad="gallery();" bgcolor="#ffffff" topmargin="10">
<table width="100%" height="100% border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">

<table width="675" border=1 bordercolorlight=Gainsboro bordercolordark=white cellpadding=3 bgcolor=f6f6f6>
<tr>
<td width="100%" height="660" align="center" valign="middle" >
<img src = "javascript:firstimg();" name="img" border=0>
</td>
</tr>
<tr>
<td height="40" align="center" valign="middle">

<br>
<form name="gallery">
<input type=button class="input" value="Previous" name="previous" onClick="previmg();">
<input type=button class="input" value="First" name="first" onClick="firstimg();" >
<input type=button class="input" value="Last" name="last" onClick="lastimg();">
<input type=button class="input" value="Next" name="next" onClick="nextimg();">
</form>

</td>
</tr>
</table>

</td>
</tr>
</table>
ÃßõÃßõ : 541 Ãßõ ¸ñ·Ï
¹øÈ£ Á¦¸ñ
2,015
·£´ý¹è³Ê¼Ò½º + ·£´ý ¾ÆÀÌÇÁ·¹ÀÓ ¼Ò½º
2,014
ÀÚµ¿»õ·Î°íħ
2,013
iframe´ë½Å div¸¦ ÀÀ¿ëÇغ¸ÀÚ
2,012
´ÙÀ½Ä«Æä ¸ÞÀο¡ ¾ÆÀÌÇÁ·¹ÀÓ »ç¿ëÇϱâ
2,011
url¿¡ get°ª °¡Á®¿À±â
2,010
PHP ÀÚÁÖ ¾²´Â ÇÔ¼öµé
µð·ºÅ丮¿¡ ÀÖ´Â À̹ÌÁö ÆÄÀÏÀ» Àоîµé¿© º¸¿©ÁÖ´Â À̹ÌÁö °¶·¯¸®
2,008
µðºñ³»¿ëÀ» ¿¢¼¿ ÆÄÀÏ·Î ´Ù¿î·Îµå ½ÃÅ°´Â ¹æ¹ý
2,007
PHP¿¡¼­ MySQL Á¢¼ÓÇϱâ
2,006
PHP¿¡¼­ Á¢¼ÓÀÚ IP ¾Ë¾Æ³»±â
2,005
°Ô½ÃÆÇ°Ë»öÀ̳ª ¼îÇθô¿¡ À¯¿ëÇÑ ÀÚ¹Ù½ºÅ©¸³Æ®
2,004
¸®´ª½º ftp ¸í·É¾î ¸ðÀ½
2,003
PHP ¹öºí¼ÒÆ® ¾Ë°í¸®Áò
2,002
PHP¿¡¼­ ¼º´É °³¼±À» À§ÇÑ À¯¿ëÇÑ ÆÁ
2,001
Flex¿Í PHP¸¦ ÀÌ¿ëÇؼ­ ¸¸µç ÆÄÀϾ÷·Îµå ¼Ò½º
2,000
PHP ÇöÀç Á¢¼ÓÀÚ ÇöȲ º¸¿©ÁÖ±â
1,999
PHP Caching to speed up
1,998
post, get, cookie, session º¯¼ö È®ÀÎ
1,997
PHP ¹®ÀÚ¿­Áß ¼ýÀÚ¸¸ ÃßÃâÇϱâ
1,996
¹«Á¶°Ç ¾Ë¾Æ¾ß ÇÒ PHP ¼Óµµ Å×½ºÆ® 14 °¡Áö
1,995
PHP ¹®ÀÚ¿­ ¿¬°áÇϱâ
1,994
PHP ¼ýÀÚ ÃµÀÚ¸®¸¶´Ù ÄÞ¸¶(½°Ç¥) Âï±â
1,993
PHP - RSS ¸®´õ±â
1,992
PHP ¸ÞÀÏ(mail) ÇÔ¼ö¸¦ ÀÌ¿ëÇÑ Ã·ºÎÈ­ÀÏ Àü¼ÛÇϱâ
1,991
PHP ÇÔ¼ö °£´Ü Á¤¸®
1,990
PHP¿¡¼­ ¼¼¼Ç(session) »ç¿ëÇϱâ
1,989
PHP explode ÇÔ¼ö¸¦ ÀÌ¿ëÇÑ ¹®ÀÚ¿­ ºÐ¸®
1,988
PHP split ÇÔ¼ö¸¦ ÀÌ¿ëÇÑ ¹®ÀÚ¿­ ºÐ¸®
1,987
PHP À̸§ÀÌ °°Àº Æûű×(Form Tag)ÀÇ °ª(value) ó¸®Çϱâ
1,986
PHP ¿À´Ã³¯Â¥¸¦ ±âÁØÀ¸·Î ÀÌÀü,ÀÌÈÄ ³¯Â¥±¸Çϱâ
¸ñ·Ï
¹ÂÁ÷Æ®·ÎÆ® ºÎ»ê±¤¿ª½Ã ºÎ»êÁø±¸ °¡¾ßµ¿ ¤Ó °³ÀÎÁ¤º¸Ãë±Þ¹æħ
Copyright ¨Ï musictrot All rights reserved.