0
 829   42   10
  View Articles

Name  
   ±èÁ¤Èñ  (2004-10-06 19:00:53, Hit : 10077, Vote : 2071)
Subject  
   ÀüÇô ´Þ¶óÁöÁö ¾Ê´Âµ¥¿ä?
¼öÁ¤Ç϶ó´Â´ë·Î ÇÑ ¼Ò½ºÀÔ´Ï´Ù
¾îµð¸¦ À߸ø ÇѰÇÁö ÀüÇô ´Þ¶óÁöÁö°¡ ¾Ê³×¿ä
Ä«¿îÆ®(Ŭ¸¯È½¼ö) ³ªÅ¸³»ÁÖ´Â ÅØ½ºÆ® ¹Ú½ºµµ ¾È º¸À̱¸¿ä

<?php

############################################################################
############################################################################
##                                                                        ##
## This script is copyright Rupe Parnell (Starsol.co.uk) 2003.            ##
##                                                                        ##
## Distribution of this file, and/or any other files in this package, via ##
## any means, withour prior written consent of the author is prohibited.  ##
##                                                                        ##
## Starsol.co.uk takes no responsibility for any damages caused by the    ##
## usage of this script, and does not guarantee compability with all      ##
## servers.                                                               ##
##                                                                        ##
## Please use the contact form at                                         ##
## http://www.starsol.co.uk/scripts/contact.php if you need any help or   ##
## have any questions about this script.                                  ##
##                                                                        ##
############################################################################
############################################################################

$version = "v1.01";
require("number_variables.php");

// ENTER ALL HTML YOU WANT ABOVE THE NUMBER GUESS BETWEEN THIS LINE ?>
<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>Á¦¸ñ ¾øÀ½</title>
<meta name="generator" content="">
<script language="javascript">

function check_submit() {

if (document.myForm.guess.value < 0) {
alert('0º¸´Ù Å« ¼ýÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä');
document.myForm.guess.focus();
return;

} else if (document.myForm.guess.value > 100) {
alert('100º¸´Ù ÀÛÀº ¼ýÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä');
document.myForm.guess.focus();
return;

} else {
document.myForm.action = "<?=$PHP_SELF?>";
document.myForm.submit();
}

}

</script>

</head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p></p>
</body>

</html>

<hr>

<?php // AND THIS LINE

echo"<p align='center'>";
echo"<font face='$fontface' size='4'><b>";
echo"Number Guess";
echo"</b></font>";
echo"</p>";

echo"<p align='left'>";
echo"<font face='Verdana' size='3'>";

if ($to_do != "play") {echo"Enter a number between 1 and $max to play.";}

if ($to_do == "play" ){

        $number = rand(1,$max);
        $guess = HTMLSpecialChars($guess);
        if ($guess>$max) {
                echo "Sorry, the number you entered was more than $max. Please enter a number between 1 and $max. ";
                echo "The correct number this time was <b>$number</b>. You guessed <b>$guess.</b>";
        }
        elseif ($guess>$number) {
                echo "Sorry, your guess is too high.<br>";
                echo "The correct number this time was <b>$number</b>. You guessed <b>$guess.</b>";
        }
        if ($guess=="") {
                echo"You forgot to enter a number. If you had entered <b>$number</b>, you would have won. ";
        }
        if ($guess<$number) {
                echo "Sorry, your guess is too low.<br>";
                echo "The correct number this time was <b>$number</b>. You guessed <b>$guess.</b>";
        }
        if ($guess == $number) {
                echo "Congratulations! You guessed correctly! The number was <b>$number</b>.";
                won();
        }
}

echo"</font></p>";

echo"<form name='myForm' method='post'>";
echo"<input type='hidden' name='to_do' value='play'>";

echo"<p align='center'>";
echo"<font face='$fontface' size='3'>";

if ($to_do == "play") {echo"Play again?";}
if ($to_do != "play") {echo"Enter your guess:";}

echo"<br><br>";
echo"<input name='guess' type='text' value='$guess'><br>";
echo"<input type='submit' value='Play!' onclick='javascript:check_submit();'>";
echo"</font></p>";

echo"</form>";

starsol();

// ENTER ALL HTML YOU WANT BELOW THE NUMBER GUESS BETWEEN THIS LINE ?>

<hr>

<?php // AND THIS LINE

function won(){

        global $fontface;

        echo"<font face='$fontface' size='3'><b>Congratulations! You guessed correctly!</b></font>";
        include('number_won.php');

        return;
}

function starsol(){

        global $fontface, $version;

        echo"<br><br><center><font face='Verdana' size='1' color='#888888'>Powered by: <a href='http://www.starsol.co.uk/scripts/' target='_blank'>Starsol</a> Number Guess $version</font></center>";

        return;
}

?>

¼Õº´¸ñ
¾È³çÇϼ¼¿ä~

<input type='submit' value='Play!' onclick='javascript:check_submit();'>

¿ä ºÎºÐ¿¡¼­

type='submit' ¸¦ type='button' À¸·Î ¹Ù²ãº¸¼¼¿ä.

¾Æ¸¶ µÉ °ÍÀÔ´Ï´Ù^^
 2004/10/06 19:34:28    


no
subject
name
date
hit
*
649
  ret_urlÀ» »ç¿ëÇØ¼­ ·Î±×ÀÎÇϱâ [1]

ÇöÀÌ
2004/12/06 12361 2601
648
    [re] ÁÁÀº²Þ²Ù¼¼¿ä °¨»çÇÕ´Ï´Ù.

ÇöÀÌ
2004/12/06 8618 1969
647
  local loop¿¡ °üÇØ¼­.. [4]

ºÀÀÌ
2004/11/27 8818 1867
646
  ÄÄÇ»ÅͶûÀº ³Ê¹«³ª °Å¸®°¡ ¸Õ Á¦°¡¿ä... [1]

½ÅÁ¤Àº
2004/11/26 8897 1957
645
  ¿©±â PHP°Ô½ÃÆÇÀÔ´Ï´Ù!! [2]

Á¤È¯±Ô
2004/11/24 9457 1971
644
  Áú¹®ÀÖ½À´Ï´Ù!!! [1]

Á¤È¯±Ô
2004/11/24 8730 1985
643
  Á˼ÛÇÕ´Ï´Ù!!! °è¼Ó ¹Ù»Û¿ÍÁß¿¡ Áú¹®µå... [1]

Á¤È¯±Ô
2004/11/18 8903 2055
642
  ¹Ø¿¡²¨ ´Ù½Ã Áú¹®ÀÌ¿ä!! ^^;; Á˼ÛÇØ... [2]

Á¤È¯±Ô
2004/11/16 8416 1842
641
  °­ÀÇÀÚ·á php°Ô½ÃÆÇ 2¿¡¼­ upload.htm... [4]

Á¤È¯±Ô
2004/11/16 9145 1781
640
  php°Ô½ÃÆÇ ¸¸µé±â¿¡¼­ Áú¹®ÀÌ¿ä [1]

±Ã±ÝÀÌ
2004/11/15 9572 1935
639
  php °Ô½ÃÆÇ 2 ±×¸²¿Ã¸® ÇϳªÃß°¡¿ëÀÌ... [1]

Á¤È¯±Ô
2004/11/15 8812 1815
638
  °Ô½ÃÆÇ ÄÚµù½Ã $HTTP_POST_VARS ¼³... [1]

¹Ú¹Ì¼±
2004/11/02 8755 1686
637
  ±¤°í¼º ±Û ¹æÁö ÆÁ¿¡ ´ëÇØ¼­ Áú¹®ÀÌ¿ä [9]

À̱¹Áø
2004/10/24 8734 1736
636
  °¨»çÇÕ´Ï´Ù..ÇѰ¡Áö´Â ÇØ°á µÇ¾ú´Âµ¥¿ä..... [1]

±èÁ¤Èñ
2004/10/07 8003 1791
635
  À̰ŠÁ˼ÛÇØ¼­ ¾î¶±ÇÏÁÒ?

±èÁ¤Èñ
2004/10/06 8765 1952
634
    [re] À̰ŠÁ˼ÛÇØ¼­ ¾î¶±ÇÏÁÒ? [1]

¼Õº´¸ñ
2004/10/06 8369 1930

  ÀüÇô ´Þ¶óÁöÁö ¾Ê´Âµ¥¿ä? [1]

±èÁ¤Èñ
2004/10/06 10077 2071
632
  Áú¹®ÀÔ´Ï´Ù.

¼ÛÀ±¼º
2004/10/06 8503 1919
631
  Á¦·Îº¸µå¿¡¼­ ¿î¿µÀÚ´Ô À̸§º¸°í µµ¿ò ¿ä... [3]

±èÁ¤Èñ
2004/10/06 8895 1842
630
  ¿À·§¸¸¿¡ ã¾ÆºË½À´Ï´Ù. [1]

ÀÌÁ¤ÈÆ
2004/10/05 8789 1987
[1][2][3][4][5][6][7][8][9] 10 ..[42] [next]

Copyright 1999-2025 Zeroboard / skin by Zetyx