標題:
詩瑜作品
[打印本頁]
作者:
may
時間:
2022-7-23 15:53
標題:
詩瑜作品
作品網址
作者:
郭詩瑜
時間:
2022-7-23 16:10
位元轉換
<!DOCTYPE html>
<html>
<style>
body{
margin:0px;
padding:0px;
background: url(https://i.imgur.com/l8GQTaL.png) center center fixed ;
}
</style>
<center>
<tittle> <font color='white'> <H1> BASE CONERTER </H1> </font></tittle> </head>
</center>
<hr>
<marquee direction="left" height="30" scrollamount="15" behavior="alternate" bgcolor="#C0C0C0"> Power By: K / Contact Email: KUJONASTUDIO@gmail.com </marquee>
<body>
<!--
Your num
-->
<?php if(empty($_POST)):?>
<font color='#FFFFE0'>YOURE NUMBER </font><form action="<?php echo $_SERVER['PHP_SELF'];?>" method="POST">
<input type="text" name="number"required >
<br>
<?php else:
echo "<font color='FFFFE0'>"."You Choose A Integer "."<font color='#49D9E9'>".$_POST["number"]."</font>".""."</font>"."<br>";
#Defind $num 定義$num #
$num = $_POST["number"];
endif?>
<!--
Your base
-->
<?php if(empty($_POST)):?>
<font color='#FFFFE0'>YOURE BASE (2-32)</font><form action="<?php echo $_SERVER['PHP_SELF'];?>" method="POST">
<br>
<input type="number" step="1" min="2" max="32" name="base" required>
<br>
<?php else:
echo "<font color='FFFFE0'>"."From Base "."<font color='#49D9E9'>".$_POST["base"]."</font>".""."</font>"."<br>";
#Defind $b 定義$b #
$b = $_POST["base"];
endif?>
<!--
to what
-->
<?php if(empty($_POST)):?>
<font color='#FFFFE0'> TO WHAT BASE (2-32)</font><form action="<?php echo $_SERVER['PHP_SELF'];?>" method="POST">
<br>
<input type="number" step="1" min="2" max="32" name="what" required>
<?php else:
echo "<font color='FFFFE0'>"."To Base "."<font color='#49D9E9'>".$_POST["what"]."</font>"."<br>"."<font color='3DFFFF'>"."<H3>"."CONVERT COMPLETED."."<H3>"."</font>"."</font>";
#Defind $wb 定義$wb #
$wb = $_POST["what"];
endif?>
<!--
Submit 送出輸入值
-->
<form> <button type ="subit" name="Submit">ENTER</button> </form>
<br>
<!--
Reset 重置
-->
<input type ="button" onclick="location.href='nconvert.php'" value="RESET"></input>
<?php
# your base To
function BC($space = '', $base = '', $tob = '')
{
$a = base_convert($space, $base, $tob);
echo "<font color='#FFFFE0'>";
echo "Youre base is: ";
echo "</font>";
echo "<font color='#FFC4C4'>";
echo $base;
echo "</font>";
echo '<br>';
echo "<font color='#FFFFE0'>";
echo "Youre Target base is: ";
echo "</font>";
echo "<font color='#FFC4C4'>";
echo $tob;
echo "</font>";
echo "<br>";
echo "<font color='#FFFFE0'>";
echo "The answer is: ";
echo "</font>";
echo "<font color='#FFC4C4'>";
echo "$a";
echo "</font>";
};
?>
<!--
Output 輸出
-->
<?php if ($num > 1):
{
echo "<br>";
echo "<font color='white'>"."<H3>"."BASE CONERTER"."<H3>"."</font>"."<h4>"."<h4>";
echo "<font color='#FFFFE0'>";
echo "You enter: "."</font>"."<font color='#3DFFCE'>".$num."</font>";
echo "<br>";
echo BC($space = $num, $base = $b, $tob = $wb)."<h5>";
echo "</font>";
};
endif?>
<!--
End Page 結束
-->
<form>
<button type ="button" name="longbtn" onclick="javascript:location.href='https://www.google.com'" >Back to<br>Google</button>
</form>
<font color='white'>
<hr> COPPYRIGHT© KUONA'STUDIO 2021</hr>
</font>
</body>
</html>
複製代碼
作者:
郭詩瑜
時間:
2022-7-23 16:16
密碼生成器[attach]13364[/attach]
作者:
郭詩瑜
時間:
2022-7-23 16:17
練習
<!DOCTYPE html>
<html>
<body background="https://thumbs.dreamstime.com/b/%E7%B1%B3%E8%89%B2%E4%BA%9A%E9%BA%BB%E5%85%A8%E6%A1%86%E6%A1%8C%E5%B8%83-%E5%B8%83%E7%BA%B9%E8%83%8C%E6%99%AF-%E5%A4%8D%E5%88%B6%E7%A9%BA%E9%97%B4-%E9%AB%98%E8%B4%A8%E9%87%8F%E7%85%A7%E7%89%87-198771724.jpg">
<head>
<center>
<tittle> <H1> Multiplication table </H1> </tittle> </head>
</center>
<hr>
<marquee direction="left" height="30" scrollamount="5" behavior="alternate" bgcolor="#977C00"> Power By:Jason Kuo / Contact Email: jason.kuo@iis.kh.edu.tw </marquee>
<body>
<center>
<a href= "https://youtu.be/mvOkMYCygps" >
<img src="https://download.logo.wine/logo/Khan_Academy/Khan_Academy-Logo.wine.png" width="600" heigh="400">
</a>
</center>
</br>
<center>
<h2>
Click the picture to go Khan Academy
</h2>
</center>
<center>
<table>
<?php
echo "<h4>";
for ($x=1;$x<10;$x++) {
echo "</p>";
echo "<center>";
echo "($x)";
echo "</center>";
echo "</br>";
echo "<td>";
for ($y=1;$y<10;$y++) {
echo "</td>";
echo "["."{$x}*{$y}=". ($x*$y)."]". " " ;
}
echo "</br>";
}
echo "</h4>";
?>
------------------------------------------------------------------------------------
<H1> 25 Number small to BIG </H1>
<hr>
<?php
echo "<form method=post action= text.php >";
echo "<input type=text name=msg>";
echo "<input type=submit value=送出>";
echo "</form>";
echo "</br>";
echo "</p>";
if(empty($_POST['msg'])){
echo " <br/> Please fill in the fields";
}else{
$name= $_POST['msg'];
echo ('Your Name is: '. $name. '<br/>');
echo ('Your Email is:' . $email. '<br/>');
};
$x =mt_rand(-100,100);
$y =mt_rand(abs($x)+100);
if ($y<$x) {
$y =abs($y+100);
}
$a = array();
while(count($a)<25){
$a=array_unique($a);
$a[]=mt_rand($x,$y);
};
$len = count($a);
for ($i=0;$i<$len;$i++) {
for ($j=$i+1;$j<$len;$j++) {
if ($a[$i] > $a[$j]) {
$tmp=$a[$i];
$a[$i] =$a[$j];
$a[$j] = $tmp;
}
}
}
foreach($a as $key => $value){
echo $value;
echo " | " ;
}
echo "</br>";
?>
<H1>Any else </H1>
<hr>
</table>
</center>
</p>
<center>
<form action=" " method="post">
<p>Name:</p>
<p><input type="text" name="name" value="Your Name"></p>
<p>Email:</p>
<p><input name="species" type= "Text"></p>
<p>Comments: </p>
<p><textarea name="comments" rows="5" cols="20">Your Comments</textarea></p>
<p>What would you like to learn:</p>
<p><input type="radio" name="interest" value="html"> HTML</p>
<p><input type="radio" name="interest" value="css"> CSS</p>
<p><input type="radio" name="interest" value="js"> JavaScript</p>
<p><input type="submit" value="SEND"></p>
</form>
</center>
</body>
</html>
複製代碼
作者:
郭詩瑜
時間:
2022-7-23 17:57
shorturl.at/AEJN0
複製代碼
歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://istak.org.tw/seed/)
Powered by Discuz! 7.2