Talha Hüner
jacascript-2
JAVASCRİPT=1
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Başlıksız Belge</title>
<script type="text/javascript" language="javascript">
function f1()
{
alert("oooooooooo TALHA REİS oooooooooooo");
}
</script>
</head>
<body>
<input type="button" value="TIKLA ADAMIM" onclick="f1()"/>
</body>
</html>
JAVASCRİPT=2
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Başlıksız Belge</title>
<script type="text/javascript" language="javascript">
function t()
{
sonuc.value=(s1.value*1)+(s2.value*1)
}
</script>
<style type="text/css">
<!--
#apDiv1 {
position:absolute;
width:189px;
height:186px;
z-index:1;
left: 66px;
top: 29px;
}
#apDiv1 table tr td {
color: #FFF;
}
#apDiv1 table {
color: #000;
}
-->
</style>
</head>
<body bgcolor="#FF99FF">
<div id="apDiv1">
<table width="176" height="182" border="15" cellspacing="10" bgcolor="#000000">
<tr>
<td><input name="s1" type="text" id="s1" value="Sayı=1" size="8m" />
<label>
+
<input name="s2" type="text" id="s2" value="Sayı=2" size="8m" />
</label></td>
</tr>
<tr>
<td><label>
<input type="submit" name="toplam" id="toplam" value="TOPLA" onclick="t()" />
</label></td>
</tr>
<tr>
<td><label>
<input name="sonuc" type="text" id="sonuc" value=" Sonuç" size="8m" />
</label></td>
</tr>
</table>
</div>
</body>
</html>
JAVASCRİPT=3
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Başlıksız Belge</title>
<script type="text/javascript" language="javascript">
function t()
{
sonuc.value=(s1.value*1)+(s2.value*1)
}
function c()
{
sonuc.value=(s1.value*1)*(s2.value*1)
}
function e()
{
sonuc.value=(s1.value*1)-(s2.value*1)
}
function b()
{
sonuc.value=(s1.value*1)/(s2.value*1)
}
</script>
<style type="text/css">
<!--
#apDiv1 {
position:absolute;
width:317px;
height:212px;
z-index:1;
left: 509px;
top: 167px;
}
#apDiv1 table tr td {
color: #FFF;
}
#apDiv1 table {
color: #000;
}
-->
</style>
</head>
<body bgcolor="#FF99FF">
<div id="apDiv1">
<table width="301" height="182" border="15" cellspacing="10" bgcolor="#000000">
<tr>
<td><input name="s1" type="text" id="s1" value="Sayı=1" size="20" />
<br />
+<br />
<label>
<input name="s2" type="text" id="s2" value="Sayı=2" size="20" />
</label></td>
</tr>
<tr>
<td><label>
<input type="submit" name="toplam" id="toplam" value="TOPLA" onclick="t()" />
<input name="carp" type="submit" id="carp" onclick="c()" value="CARP" />
<input type="submit" name="böl" id="böl" value="BÖL" onclick="b()" />
<input type="submit" name="cıkar" id="cıkar" value="CIKAR" onclick="e()" />
</label></td>
</tr>
<tr>
<td><label>
<input name="sonuc" type="text" id="sonuc" value=" Sonuç" size="20" />
</label></td>
</tr>
</table>
</div>
</body>
</html>
JAVASCRİPT=4
<html>
<head>
<title>ornekler</title>
<script language="javascript">
var s="Talha Huner";
document.write(s.length);
</script>
</head>
</html>
JAVASCRİPT=5
<html>
<head>
<title>ornekler</title>
<script type="text/javascript" language="javascript">
function a()
{
sonuc.value=(yari.value*1)*(yari.value*1)*3
}
function c()
{
sonuc.value=(yari.value*2*3)
}
</script>
</head>
<body bgcolor="#FFCCFF">
<p>
<label>
<input type="text" name="yari" id="yari">
</label>
<br>
<label>
<input type="submit" name="alan" onClick="a()" value="Alanı?">
</label>
<label>
<input type="submit" name="cevre" onClick="c()" value="Cevresi?">
</label>
<br>
<label>
<input type="text" name="sonuc" id="sonuc">
</label>
<br>
<label>
<input type="reset" name="reset" id="reset" value="RESET">
</label>
</p>
</body>
</html>
JAVASCRİPT=6
<html>
<head>
<title>ornekler</title>
<script type="text/javascript" language="javascript">
var ad="TALHA HÜNER";
for(i=0;i<=(ad.length-1);i++)
{
document.write(ad.charAt(i)+"<br>");
}
</script>
</head>
<body bgcolor="#FFCCFF">
</body>
</html>
JAVASCRİPT=7
<html>
<head>
<title>ornekler</title>
<script type="text/javascript" language="javascript">
function k()
{
var a=il.value;
var b=ilce.value;
var c=okul.value;
bilgi.value=(a.concat(" / ",b," / ",c))
}
</script>
</head>
<body bgcolor="#FFCCFF">
<p>
<label>
<input name="il" type="text" id="il" value="İL">
</label>
<br>
<label>
<input name="ilce" type="text" id="ilce" value="İLÇE">
</label>
<br>
<label>
<input name="okul" type="text" id="okul" value="OKUL">
</label>
<br>
<label>
<input type="submit" name="kaydet" onClick="k()" value="KAYDET">
</label>
<br>
<label>
<textarea name="bilgi" id="bilgi" cols="50" rows="2"></textarea>
</label>
</p>
</body>
</html>
JAVASCRİPT=8
<html>
<head>
<title>ornekler</title>
<script type="text/javascript" language="javascript">
var ad="TALHA HÜNER";
for(i=ad.length-1;i>=0;i--)
{
document.write(ad.charAt(i)+"<br>");
}
</script>
</head>
<body bgcolor="#FFCCFF">
</body>
</html>
JAVASCRİPT=9
<html>
<head>
<title>ornekler</title>
<script type="text/javascript" language="javascript">
ad="TALHA HÜNER";
document.write(ad.substr(6,11));
</script>
</head>
<body bgcolor="#FFCCFF">
</body>
</html>