Java Kodları (Hepsi)

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Sayfa Yüklendikçe Mesaj

<script language="JavaScript">
<!-- Hide the script from old browsers --

function loadalert ()
{alert("HEY! selamun Aleykum Nasılsın")}
// --End Hiding Here -->
</script>​
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Sitenize Gelenlerin Bilgilerini Gösteren Bir Java

2 parts to this script
==============================================
part 1 - place inside head tags
==============================================

<script language="JavaScript" type="text/javascript">
<!--

test=0;

//-->
</script>
<script LANGUAGE="JavaScript1.0" type="text/javascript">
<!-- Begin

jsver = "1.0";

// End -->
</script>
<script LANGUAGE="JavaScript1.1" type="text/javascript">
<!-- Begin

jsver = "1.1";

// End -->
</script>
<script Language="JavaScript1.2" type="text/javascript">
<!-- Begin

jsver = "1.2";

// End -->
</script>
<script Language="JavaScript1.3" type="text/javascript">
<!-- Begin

jsver = "1.3";

// End -->
</script>
<script Language="JavaScript1.4" type="text/javascript">
<!-- Begin

jsver = "1.4";

// End -->
</script>
<script Language="JavaScript1.5" type="text/javascript">
<!-- Begin

jsver = "1.5";

// End -->
</script><script language=JavaScript>
<!--

//////////////////////////////////////////////////////////////////

// CheckSys v1.04.21-01 //

//////////////////////////////////////////////////////////////////

// //

// This JavaScript can be freely used as long as this message //

// stays here in the header of the script. Any modifications //

// and bugs found (and fixed) are appreciated. //

// Adding additional information of checking modules is //

// extremely appreciated and encouraged. //

// //

// Svetlin Staev, [email protected] //

//////////////////////////////////////////////////////////////////

var place="check.htm"; // Redirection page after check

window.onerror=error; //no error exceptions

//-----------------Initazing variables-------------------//

var jscript,vscript,language,resolution,colors,avalW,avalH,real,flash,browname,cookie;

var seq1="",seq2="";
var a=0,b=0,num=0;precent=0;
var realState=false;
var flashState=false;
var G2=false;
var FI=false;
var agt=navigator.userAgent.toLowerCase();
var last=document.lastModified;
var historyP=history.length;
var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var monthNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
var dt=new Date();
var y=dt.getYear();
var dateP=dayNames[dt.getDay()] + ", " + monthNames[dt.getMonth()] + " " + dt.getDate() + ", " + y;
var ie=document.all?1:0;
var ns=document.layers?1:0;
var ns6=document.getElementById?1:0;
var l=(ie||ns6)?navigator.browserLanguage:navigator.language;

switch(navigator.platform)
{
case "Win16":
plat = "Microsoft Windows 3.1";
break;
case "Win32":
if(agt.indexOf("win98")||agt.indexOf("windows 98")) plat = "Microsoft Windows 98";
else if(agt.indexOf("win95")||agt.indexOf("windows 95")) plat = "Microsoft Windows 95";
else if(agt.indexOf("winnt")||agt.indexOf("windows nt")) plat = "Microsoft Windows NT";
else if(agt.indexOf("9x 4.90")) plat = "Windows ME";
break;
case "OS/2":
plat = "OS/2";
break;
case "Linux":
plat = "Linux OS";
break;
}
function error()
{
window.status="Error detected";
settimeout("window.status='Fixing error';",10000);
settimeout("window.status='Error obliterated';",10000);
settimeout("window.status='Preventing future errors';", 10000);
return true;
}
//-------------------End of variables-------------------//
//----------Cookie and JavaScript check module----------//
if (navigator.javaEnabled()>-1) jscript = "JavaScript enabled";
else jscript = "JavaScript not detected";
if(ie)
{
if (navigator.cookieEnabled) cookie = "Cookies enabled";
else cookie = "Cookies disabled"
}
else cookie = "Cookies can not be detected. (Error NS001)"
//--------------------End of module--------------------//
//----------Flash & Real Players check module----------//
for (i=0;i<navigator.plugins.length;i++)
{
if ((navigator.plugins.name.substring(0,10)=="RealPlayer")&&(navigator.plugins.name.indexOf("G2")>0))realState=true;
if ((navigator.plugins.name.indexOf("Shockwave Flash")>-1)&&(navigator.plugins.description.indexOf("4")>-1))flashState=true;
}
document.write('<script language=VBScript\>\non error resume next \nRealPlayerG2=(NOT IsNull(CreateObject("rmocx.RealPlayer G2 Control")))\n</script\>\n');
document.write('<script language=VBScript\>\non error resume next\nFlashInstalled=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n</script\>\n');
if (flashState||FI) flash = "Flash Player installed"
else flash = "Flash Player missing"
if (realState||G2) real = "Real Player installed"
else real = "Real Player missing"
//--------------------End of module--------------------//
//------------------General info module----------------//
if (ie)
{
browname = "Microsoft Internet Explorer";
vscript = "VBScript enabled";
avalW = window.screen.availWidth;
avalH = window.screen.availHeight;
langInfo();
}
else if (ns)
{
browname = "Netscape Navigator";
avalW = document.innerWidth;
avalH = document.innerHeight;
colors = window.screen.colorDepth;
resolution = ''+window.screen.width+' X '+window.screen.height+'';
vscript = "VBScript missing";
langInfo();
}
else if (ns6) browname = "Netscape 6 Gecko";
colors = window.screen.colorDepth;
resolution = ''+window.screen.width+' X '+window.screen.height+'';

//--------------------End of module--------------------//

function langInfo() // Detection of browser language
{
if (l.indexOf('en')>-1)language='English';
else if (l.indexOf('nl')>-1) language='Dutch';
else if (l.indexOf('fr')>-1) language='French';
else if (l.indexOf('de')>-1) language='German';
else if (l.indexOf('ja')>-1) language='Japanese';
else if (l.indexOf('it')>-1) language='Italian';
else if (l.indexOf('pt')>-1) language='Portuguese';
else if (l.indexOf('es')>-1) language='Spanish';
else if (l.indexOf('sv')>-1) language='Swedish';
else if (l.indexOf('zh')>-1) language='Chinese';
else language='English';
}

boot = 'Ini~tial~izing C~heck~S~ys..~~..~~..~..~.OK,~~ now b~o~o~t~i~n~g the CheckSys.~~~
'
+'Che~ck~Sys v~ersi~on v1~.04.~21-01~~ (cke~cks~ys.c~om)  ~~# '+last+'
'
+'Loa~ding ~Confi~gurat~ion...~Ini~tial~izing C~onigura~tio~n...~Confi~gura~tion loaded ~~~~~successfully!
'
+'L~oadi~ng GUI.~..Init~ializ~ing G~UI...GU~I loa~ded ~~~~~successfully!
'
+'~Per~form~ing ~GUI ~test~...<font color=blue>H</font><font color=red>~E~</font><font color=blue>L</font><font color=red>L</font><font color=blue>O~</font>
'
+'Conn~ecti~ng t~o cli~ent\'s ~compu~ter..~.~~...~....~~~....~...~..con~nec~tio~n co~mpl~et~e.
'
+'Ope~rati~ng sys~~tem~ fo~und.
'
+'Cli~en~t\'s br~owse~r pl~atf~orm: <font color=purple>'+plat+' ('+navigator.platform+')</font>
'
+'D~ete~ctin~g cl~ien~t\'s br~ows~er.~~~~~~
'
+'Retrieving browser name.......Browser name:~~ <font color=purple>'+navigator.appCodeName+'</font>
'
+'Decoding and adjusting browser name........Successful.
'
+'Common browser name: <font color=purple>'+browname+'</font>
'
+'Retrieving browser version..~...~..~~~..Done.
'
+'Browser version: <font color=purple>'+navigator.appVersion+'</font>
'+'Checking browser history...........Done
'
+'<font color=purple>'+historyP+' pages</font> found in browser history.~~
'
+'Autodetecting JavaScript~.~.~.~.~.~.~.~.~.~.~.~.~.~Done.
'
+'<font color=purple>'+jscript+'</font>. Javascript version <font color=purple>'+jsver+'.</font>
'
+'Looking for VBScript.~.~.~..~~..~.~..~.Done
'
+'<font color=purple>'+vscript+'</font>
'
+'Examining cookies.~.~.~..~~..~.~..~.
'
+'<font color=purple>'+cookie+'</font>.
'
+'Logging in additional information.~.~.~.~.~.~.~.~.~.~.Successful.
'
+'Extracting client\'s date information...~.
'
+'Date: <font color=purple>'+dateP+'</font>~~~~
'
+'Language present in browser....~~...~..~.<font color=purple>'+language+'</font>
'
+'Screen resolution get to be '+resolution+'
'
+'Getting color depth....~....~...~...<font color=purple>'+colors+' bit</font>
'
+'Estimating available browser space....~..~.~..Done.
'
+'Browser ~~~~~available ~~~~~width: <font color=purple>'+avalW+' pixels</font>
'
+'Browser ~~~~~available~~~~~ height: <font color=purple>'+avalH+' pixels</font>
'
+'~~Extr~~act~in~g pl~ugi~n in~fo~rmat~io~n.
'
+'Lo~oki~ng ~for~ Re~al P~lay~er.~~.~.~.~.~.~.~.~.~.~.~.Done.
'
+'<font color=purple>'+real+'</font>
'
+'Ch~eck~ing~ fo~r M~ac~rom~edi~a F~LAS~H pl~ayer.~.~.~.~.~.~.~.~.~.~.Done.
'
+'<font color=purple>'+flash+'</font>
'
+'Ch~eck~Sys~ op~era~tio~n <font color=blue>~c</font><font color=orange>~o</font>m<font color=blue>~p</font><font color=orange>l</font><font color=blue>e</font><font color=orange>t</font><font color=blue>e</font>. Terminating file.~~~
'
+'No~w re~dire~ctin~g to~ prop~er we~b p~age~.~...~.~..~...~OK.~~~
';

seq = boot.split("~"); // Spliting the string
function initCheck() // The Linux-like boot simulation function
{
seq1='<tt>'+seq2+'<b style="color:silver"><i style="color:silver">'+seq[num]+'</tt>';
seq2+=seq[num];
if(ns)
{
with(document.out.document.indoor)
{
if(window.onerror)
{
settimeout("document.write(seq1);",60000);
settimeout("document.close();",60000);
}
}
}
if(ie) booty.innerHTML = seq1;
if(ns6) document.getElementById("booty").innerHTML = seq1;
if (!(num>=seq.length-1))
{
num++;
down();
window.status=precent+"% complete.";
if (precent<100)precent++;
else window.status="Checking completed."
setTimeout('initCheck()',1);
}
else { window.location="linuxpd.html"; }
}
function down() // Scrolling down function
{
b+=100;
window.scroll(0,a);
a=setTimeout("down()",1000);
}
onload=initCheck;
//-->
</script>
<style>
#booty {position:absolute;}
</style>

====================================================
part 2 - place in body of page
====================================================
<table cellpadding=0 cellspacing=0 border=0 width=100%>
<tr>
<td>
<ilayer id=out width=95% height=95%>
<layer id=indoor width=95% height=95%>
<div id=booty>
</div>
</layer></ilayer>
</td>
</tr>
</table>
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
(Sayfa Yüklenirken Uyarıverme)
--------------------------------------------------------------------------------------------------------
<!-- ONE STEP TO INSTALL ONLOAD / ONUNLOAD ALERTS:

1. Copy the onLoad event handler into the BODY tag -->

<!-- STEP ONE: Add this onLoad event handler into the BODY tag -->

<!-- Original: Joshua Foster ([email protected]) -->
<!-- Web Site: http://www.geocities.com/SiliconValley/Foothills/7848 -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<BODY onLoad="alert('Tr-web.coma Hoş Geldiniz. Türkiyenin En Büyük Webmaster Sitesinde Yüzlerce Script Bulabilirsiniz');" onUnLoad="confirm('Are you sure you want to leave this page?');">

<p><center>

Tr-Web Javascript Arşivi</font>
</center><p>

<!-- Script Size: 0.43 KB -->​
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
(Sayfa Atlama)
--------------------------------------------------------------------------------------------------------
<html>
<head>
<script>
<!-- START HIDE
// #############################################################
// #############################################################
function jmp(){
document.location.href="http://www.hazirkod.com"
}
// STOP HIDE -->
</script>
</head>
<body onload="setTimeout('jmp()',4000)">
<p align="center">Bu sayfa 4 saniye sonra otomatik olarak iyimser ana sayfasına atlayacak </p>
</body>
</html>​
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Sag Tuş'a Tıklayınca Çıkan Menü

1 part to this script - paste entire script into head of page and edit links
================================================================

<style>
<!--
#ie5menu { position: absolute; width: 210px; background-color: menu; font-family: Tahoma; font-size: 12px; line-height: 20px; cursor: default; visibility: hidden; border: 2px outset default }
.menuitems { padding-left: 15px; padding-right: 15px }
//-->
</style>
<script>
var display_url=0
function showmenuie5(){
ie5menu.style.left=document.body.scrollLeft+event.clientX
ie5menu.style.top=document.body.scrollTop+event.clientY
ie5menu.style.visibility="visible"
return false
}
function hidemenuie5(){
ie5menu.style.visibility="hidden"
}
function highlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor="highlight"
event.srcElement.style.color="white"
if (display_url==1)
window.status=event.srcElement.url
}
}
function lowlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor=""
event.srcElement.style.color="black"
window.status=''
}
}
function jumptoie5(){
if (event.srcElement.className=="menuitems")
window.location=event.srcElement.url
}
</script>
<script>
<!--
function correct(){
if (finished){
setTimeout("begin()",1000)
}
return true
}
window.onerror=correct
function begin(){
if (!document.all)
return
if (maxheight==null)
maxheight=temp.offsetHeight
whatsnew.style.height=maxheight
temp.style.display="none"
c=1
finished=true
change()
}
//-->
</script>
<!-- EDIT LINKS BELOW HERE -->

<!--[if IE]><div id="ie5menu" onMouseover="highlightie5()" onMouseout="lowlightie5()" onClick="jumptoie5()"><div class="menuitems" url="http://www.123webmaster.com">123Webmaster</div><div class="menuitems" url="http://www.fontfiles.com">Font Files</div><div class="menuitems" url="http://www.boxedart.com">Boxed Art</div><div class="menuitems" url="http://www.perlaccess.com">Perl Access</div><div class="menuitems" url="http://www.htmlforums.com">HTML Forums</div></div><![endif]-->
<script>
document.oncontextmenu=showmenuie5
if (document.all&&window.print)
document.body.onclick=hidemenuie5
</script>​
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
(Midi calıcı)
--------------------------------------------------------------------------------------------
<!-- Start Of Midi Master Script -->
<!-- MIDI Player that allows you to choose songs/tracks -->
<!-- Instructions: Just put this script anywhere on your webpage
that you wish to have a user interface.
<!-- -->
<!-- -->
<Script Language="JavaScript">
<!-- Hiding

song = new Array()
var x = 0

song[1] = "Cool Midi # 1"
song[2] = "Cool Midi # 2"
song[3] = "Cool Midi # 3"
song[4] = "Cool Midi # 4"
song[5] = "Cool Midi # 5"
song[6] = "Cool Midi # 6"

function prev(){
if (x>1)
{ x--
document.midi.typein.value=song

}
}

function next(){
var max= song.length-1
if (x<max)
{ x++
document.midi.typein.value=song

}
}

function go(){
if (x != 0){
location.href='song'+x+'.mid'
}
}

function start(){
x=1
document.midi.typein.value=song

}

function end(){
x=song.length-1
document.midi.typein.value=song

}

function cls(){
document.midi.typein.value="Select Midi Song"
}
// Done Hiding -->
</Script>
<BODY Bgcolor="#ffffff" onload="cls()">
<Center>
<FORM Name="midi">
<INPUT NAME="typein" TYPE="text" SIZE="25" ALIGN=top><BR>
<font size=3 face="Comic Sans Ms">
<INPUT TYPE=Button Value="|<<" Align=left onclick="start()">
<INPUT TYPE=Button Value="<<" Align=left onclick="prev()">
<INPUT TYPE=Button Value="PLAY" Align=left onclick="go()">
<INPUT TYPE=Button Value=">>" Align=left onclick="next()">
<INPUT TYPE=Button Value=">>|" Align=left onclick="end()">
</FORM></font>
</Center>
</BODY>
</HTML>
<!-- End Of Midi Master Script -->

</body>
</html>​
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
(Midi &#199;ald&#305;r&#305;c&#305;)

--------------------------------------------------------------------------------------------

<bgsound src="DOSYA_ADI.mid" loop="1">
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
(Ziyaretçi Defteri)--------------------------------------------------------------------------------------------
Ziyaretci defteri hazirlanmasi suresince olusturacaklarimiz:

1- database'imize ziyaretci_defteri isimli bir tablo olusturacagiz.
2- Gelen ziyaretciye bir arayuz hazirlayip bilgilerini ve goruslerini yazmasini saglayacagiz. (yaz.php dosyasi olusturulacak)
3- Gonderilen bilgileri database'imize ekleyecegiz. (gonder.php dosyasi olusturulacak)
4- Gonderilmis olan bilgilerin database'imizden okunmasini saglamak icin bir arayuz hazirlayacagiz. (oku.php dosyasi olusturulacak)

1- Oncelikle database'imizde "ziyaretci_defteri" isimli 6 field'li bir tablo olusturalim ve "numara" isimli tabloya otomatik numaralama, unique ve primary key ozelliklerini verelim. Tabloyu olusturmak icin asagidaki kodlari kullanabilirsiniz.

CREATE TABLE ziyaretci_defteri (
numara smallint(6) NOT NULL auto_increment,
isim text NOT NULL,
email text NOT NULL,
ulke text NOT NULL,
gorus longtext NOT NULL,
tarih datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (numara),
UNIQUE KEY numara (numara)
) TYPE=MyISAM;


2- Tablomuz olsutu, simdi gelen ziyaretcimizin bu tablomuzu guzel bir arayuzle doldurmasini saglayalim. Tablodanda anlasilacagi gibi,
Isim, email, ulke ve gorusler soruluyor. Bu sistemi html olarakta hazirlayabilirsiniz. Ama "imput name"leri tablomuzda verdigimiz isimlerle uyusmalidir.
Asagida "yaz.php" isimiyle kaydetmeniz gereken kodlar bulunmaktadir.

<html>
<head><title>Ziyaretci Defteri - Gorusunuzu Yazininz (yaz.php)</title><head>
<body>
<form method="post" action="gonder.php">
Isminiz : <input type="text" name="isim">

Email : <input type="text" name="email">

Ulkeniz : <input type="text" name="ulke">

Gorusleriniz : <textarea name="gorus"></textarea>




<input type="submit" name="valider" value="Gonder">
</form>
</body>
</html>


(Yukaridaki kodu yapistirdigimiz dosyaya "yaz.php" ismini verelim)
Yukaridaki kodlardada goruldugu gibi "form action" ileride olusturacagimiz "gonder.php" dosyasina verilmistir.
Simdi burada dikkatinizi cekmek istedigim nokta su, gordugunuz gibi olusturulan ger form bolumunun (yani isim, yada email yada gorus vs.) birer isimi var (ornegin "Isminiz" bolumu icin "name="isim"") ve yine dikkatinizi cekmisse eger butun form'daki bolumlerin isimlerinin hazirlamis oldugumuz database tablosunda bir karsiligi var. Yani bu bolumlere yazilan bilgiler isimlerin karsiliklari, ana tablodaki o isimli bolume yaziliyor.
Yukaridaki kodlari yapistirdigimiz dosyayi "yaz.php" olarak adlandiralim.

3- Yukarida olsuturmus oldugumuz form'a girilecek olan bilgilerin direk olarak tablo icine gonderilmesini istiyoruz, yukaridada belirttigim gibi form bolumlerine yazilan bilgilerin, birazdan hazirlayacagimiz "gonder.php" dosyasi ile direk olarak ana tablomuza yazilmasini saglayacagiz. Bu bolum icin asagidaki kodu kullanabilirsiniz.

<html>
<head><title>Ziyaretci Defteri - Gorus Onayi (gonder.php)</title><head>
<body>
<?php
$db = mysql_connect(); //database baglantisi
$continu=1;
if ($isim == "")
{
print("Lutfen Isim bolumunu tam olarak doldurunuz!
"); //isim bolumu bos birakildiginda cikacak hata yazisi
$continu=0;
}

if ($continu == 1)
{
$date=date("Y-m-d");
$sql="INSERT INTO ziyaretci_defteri (isim, email, ulke, gorus, tarih) VALUES ('$isim', '$email', '$ulke', '$gorus', NOW())";
mysql_query($sql, $db);
print("Gorusleriniz Icin Tesekkurler !") ; //gonderilme islemi tamamlandiginda cikacak yazi
}
else
{
print("<a href=yaz.php>Geri</a>");
}
?>

<?php print("<a href=oku.php>Defteri Oku</a>"); ?>
</body>
</html>

(Yukaridaki kodu yapistirdigimiz dosyaya "gonder.php" ismini verelim)
Yukaridaki kodda php dosyasini ilk olarak database'imize bagladik, bunun icin "$db = mysql_connect();" kodunu kullandik. Sonra kendimize bir onaylayici hazirladik. Eger gonderen kisim "Isminiz" bolumunu yanlislikla bos birakmissa sistem onu uyaracak ve bu bilgiyi doldurmasini isteyecek.
Bunun icin su kod bolumlerini kullandik;

$continu=1;
if ($isim == "")
{
print("Lutfen Isim bolumunu tam olarak doldurunuz!
");
$continu=0;
}

Ardindan verilen bilgilerin ana tablomuzda yerli yerine oturmasini sagladik ve adreslerini tam olarak belirledik.

$sql="INSERT INTO ziyaretci_defteri (isim, email, ulke, gorus, tarih) VALUES ('$isim', '$email', '$ulke', '$gorus', NOW())";

Dikkatinizi cekecegi gibi yine burada, form sayfasinda her bolume verdigimiz isimleri kullandik. (orn. "isim, email, ulke, gorus") ve yukaridaki kodun "VALUES" bolumune onlarin birer birer yerlesmesi icin adres verdik. Yukaridaki kodda dikkatinizi cekecek bir adet fazla bolum bulunmakta, buda "tarih". Ana tablomuza tarihi eklemis ama simdiye kadar kullanmamistik. Simid onuda kullaniyoruz. Ve bu taihin "VALUE" bolumundeki karsiligi olarakda "NOV()" yani "simdi" yi kullandik, cunku oraya yazilan tarih o bilgilerin yazildigi tarihle ayni olmasini istedik.
Database yazim kodlarimizin altindada goruldugu gibi;

print("Gorusleriniz Icin Tesekkurler !") ; //gonderilme islemi tamamlandiginda cikacak yazi

Eger yazim islemi basarili olursa, sayfamizda gorulmesi gereken onay yazisida orada bulunmakta.
En sondan 5. siradaki "print("<a href=yaz.php>back</a>");" kodunu kullanmaizdaki amac ise eger yazim sirasinda bir hata cikar yada yukaridaki hazirlamis oldumuz "isim onaylayicis" devreye girerse, ziyaretcinin kolayca geri donmesini saglayabilmek.


4- Eveet, gonderilen butun bilgi suanda dogru olarak database'imize ulasiyor ama bunu bide diger ziyaretcilerimizin gormesini saglamamiz gerekli.
Bunun icinde asagidaki kodu kullanalim.

<html>
<head><title>Ziyaretci Defteri - Gorusleri Oku (oku.php)</title><head>
<body>
<table align="center" cellspacing="0" cellpadding="0" border="1" width="80%">
<tr>
<td bgcolor="black"><font color="white">Isim</td>
<td bgcolor="black"><font color="white">Email</td>
<td bgcolor="black"><font color="white">Ulke</td>
<td bgcolor="black"><font color="white">Gorusler</td>
<td bgcolor="black"><font color="white">Tarih</td>
</tr>

<?php
$db = mysql_connect(); //database baglantisi
$sql="SELECT * FROM ziyaretci_defteri ORDER BY numara"; //siralamanin yapilacagi tablonun secimi.
$res=mysql_query($sql, $db);
while ($ligne = mysql_fetch_object ($res))
{
print "<tr>";
print "<td>$ligne->isim</td>";
print "<td>$ligne->email</td>";
print "<td>$ligne->ulke</td>";
print "<td>$ligne->gorus</td>";
print "<td>$ligne->tarih</td>";
print "</tr>";
}
mysql_free_result ($res);
?>
</table>

<?php print("<a href=yaz.php>Deftere Yaz</a>"); ?>
</body>
</html>

(Yukaridaki kodu yapistirdigimiz dosyaya "oku.php" ismini verelim)
Yukaridaki dosyada oncelikle kendimize bir tablo hazirladik, ve tablomuza basliklarini verdik. (orn. Isimi, Emil, Gorus vs.) Ve sonra yine database'imize baglanti sagladik. ( $db = mysql_connect() Ve sonra suandaki sayfamizda gorunmesini istedigimiz yazilarin, hangi tablodan alinmasi gerektigini ve hangi siralamaya girmesi gerektigini yazdik. ($sql="SELECT * FROM ziyaretci_defteri ORDER BY numara".
Ve daha sonra database'de bulunan yazilarin sayfaya gecmesini saglamak icin baglanti kodunu yazdik. (while ($ligne = mysql_fetch_object ($res)) )
Simdi tablo bolumlerini "print "<td>$ligne->isim</td>";" kodunu kullanarak ekleyebiliriz. Unutmayinizki "$ligne->" yazinin tablodan alinmasini sagliyor ama tablonun hangi fiel'inden alinmasi gerektigini belirtmeniz gerekli. Bunuda "$ligne->isim" yada "$ligne->email" yada "$ligne->gorus" vs. seklinde saglayabilirsiniz.
Eveet. Hepsi bu. Elimizde baska bir siteye bagli olmayan kendimize ait bir ziyaretci defterimiz var.

Eger yukardaki kodlari kopyalayip yapistirmak istemiyorsaniz ekteki dosyayi indirip dosyalarin hazirlanmis halini kullanabilirsiniz, ama database tablosunu mutlaka olusturmalisiniz...

PHP'sisteminde daha cok yeniyim. Ilk ogrendigim sey yukarida anlattigim ziyaretci deferi olmustu. Umarim yeterince acik anlatabildim ve sizinde isinize yarayabilir.

NOT: Yukaridaki ziyaretci deferini yaparken onemli bir nokrta var, database'inizin tek olmasi gerekli, birden fazla database oldugunda database secme sistemini henuz ogrenemedim, eger bileniniz varsa onuda bu yazinin altina ekleyebilirse cok sevinirim.
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Geri Dön Butonu

<!-- this script and many more avaliable from A1 javascripts all credit to A1javascripts. Please leave these comments intact thank you --><form><input type=button value="Geri" onClick="history.back()"></form><!-- -->​
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
(online kişi sayısı)
--------------------------------------------------------------------------------------------
Öncelikle bir veritabanına ihtiyacımız var. Veritabanımızda useronline adında bir table oluşturuyoruz. Gerekli kodlar altta.

CREATE TABLE useronline (
on_id int(20) NOT NULL auto_increment,
timestamp int(15) NOT NULL default '0',
ip varchar(100) NOT NULL default '',
file varchar(100) NOT NULL default '',
PRIMARY KEY (on_id)
) TYPE=MyISAM;

Daha sonra kodlarımızı yazalım ve user_online.php olarak kayıt edelim. Tabi siz adını değiştirebilirsiniz ama gerekli ayarlamaları unutmadan.

// user_online.php
<?
include ("config.php") // veritabanına bağlantı kodları yer alacak


$timeoutseconds = 60;
$timestamp = time();
$timeout = $timestamp-$timeoutseconds;
$SID = session_id();

$insert = mysql_query("INSERT INTO useronline (timestamp,ip,file) VALUES ('$timestamp','$SID','$PHP_SELF')");
if(!($insert)) {
print "kayıt hatası> ";
}
$delete = mysql_query("DELETE FROM useronline WHERE timestamp<$timeout");
if(!($delete)) {
print "";
}
$result = mysql_query("SELECT DISTINCT ip FROM useronline WHERE file='$PHP_SELF'");
if(!($result)) {
print "";
}
$user = mysql_num_rows($result);


mysql_close();
if($user == 1) {
print("<center><font color=blue size=1>$user</font><font size=1> Kişi Online</font>\n");
} else {
print("<font color=blue size=1>$user</font><font size=1> Kişi Online</font>\n");
}

?>

// sayfamızda istediğimizin bir yerine <?include ("online_user.php")?> kodunu eklersek işlem bitmiş olur​
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
(PHP ile Whois)
--------------------------------------------------------------------------------------------

<?

$domain=$isim;
$domain.=$uzanti;

if($uzanti=='.com' || $uzanti=='.org' || $uzanti=='.net')
{
if
($domain)
{
if ($domain)
{

$fp = fsockopen( "rs.internic.net", 43, &$errno, &$errstr,
10);
if (!$fp)
{
echo "$errstr ($errno)
\n";
}
else

{
fputs($fp, "$domain\r\n");
while(!feof($fp))
{
$buf =
fgets($fp,128);
if (ereg( "Whois Server:", $buf))
{

$server = str_replace( "Whois Server: ", "", $buf);
$server = trim($server);

}
}
fclose($fp);
}
if ($server)
{

echo "<font face=verdana size=1 color=black><B>$domain
satın alınmıştır. Lütfen başka alan adı
deneyiniz.<BR>";
echo "<PRE>";
$fp = fsockopen($server, 43, &$errno, &$errstr,
10);

}
else {
echo( "<font face=verdana size=1
color=black>$domain
alan adı satın alınmamıştır.");
}

echo ( "</PRE><BR>");
}

}




}

else
{
if ($domain)
{
if
($domain)
{
// first get the domain server from internic

$fp = fsockopen(
"dns.metu.edu.tr", 43, &$errno, &$errstr, 10);
if (!$fp)
{
echo "$errstr
($errno)
\n";
}
else
{
fputs($fp, "$domain\r\n");

while(!feof($fp))
{
$buf = fgets($fp,27);
if (ereg( "Veri
tabaninda bulunamadi", $buf))
{
$server = str_replace( "Veri
tabaninda bulunamadi", "", $buf);
$server = trim($server);
}

}
fclose($fp);
}
if (!$server)
{
echo "<font
face=verdana size=1 color=black>$domain
satın alınmıştır. Lütfen başka alan adı
deneyiniz.</B><BR></font></font>";

echo "<PRE>";
$fp = fsockopen($server, 43,
&$errno, &$errstr, 10);

}
else {
echo( "<font face=verdana size=1
color=black>$domain
satın alınmamıştır.<BR>");
}
echo
( "</PRE><BR>");
}

}

}
?>

<html>

<head>
<meta content='tr'
http-equiv='Content-Language'>
<meta content='text/html; charset=windows-1254' http-equiv='Content-Type'>

<meta content='text/html; charset=iso-8859-9' http-equiv='Content-Type'>
<title>Dinamit
Whois</title>
</head>
<body bgcolor='white'>
<FORM ACTION='<? echo($PHP_SELF); ?>' METHOD='post' >

<font
size=1>Sorgulamak istediğiniz domain ismini aşağıdaki kutuya yazınız.
<table border=0>
<tr>
<td><font face=verdana
size=1 color=black>www.</td>
<td>
<INPUT TYPE="text" NAME="isim" SIZE="30" MAXLENGTH="100">

<select name="uzanti" >
<option value=".com.tr">.com.tr</option>
<option
value=".net.tr">.net.tr</option>
<option value=".org.tr">.org.tr</option>
<option
value=".gen.tr">.gen.tr</option>
<option value=".nom.tr">.nom.tr</option>
<option
value=".com">.com</option>
<option value=".net">.net</option>
<option
value=".org">.org</option>
</select>
</td>
<td align=center> <INPUT TYPE=submit VALUE="Kontrol
Et"></td>
</tr>
</table>
</FORM>
</body>
</html>​
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
(Mailing List)--------------------------------------------------------------------------------------------
<!-- TWO STEPS TO INSTALL MAILING LIST:

1. Paste the coding into the HEAD of your HTML document
2. Put the last code into the BODY of your HTML document -->

<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function resetform() {
document.forms[0].elements[1]=="";
}
function submitForms() {
if (isEmail() && isFname() && isLname() && isAddress() && isCity() && isState() && isZip())
if (confirm("\n You are about to e-mail your submission. \n\nYES to submit. NO to abort."))
{
alert("\nYour submission will now be sent. \n\n Use the Return Button once the submission is complete to return to my home page.\n\n\n Thank you for joining our mailing list!");
return true;
}
else
{
alert("\n You have chosen to abort the submission.");
return false
}
else
return false;
}
function isEmail() {
if (document.forms[0].elements[1].value == "") {
alert ("\n The E-Mail field is blank. \n\n Please enter your E-Mail address.")
document.forms[0].elements[1].focus();
return false;
}
if (document.forms[0].elements[1].value.indexOf ('@',0) == -1 ||
document.forms[0].elements[1].value.indexOf ('.',0) == -1) {
alert ("\n The E-Mail field requires a \"@\" and a \".\"be used. \n\nPlease re-enter your E-Mail address.")
document.forms[0].elements[1].select();
document.forms[0].elements[1].focus();
return false;
}
return true;
}
function isFname() {
if (document.forms[0].elements[2].value == "")
{
alert ("\n The First Name field is blank. \n\n Please enter your first name.")
document.forms[0].elements[2].focus();
return false;
}
return true;
}
function isLname() {
if (document.forms[0].elements[3].value == "") {
alert ("\n The Last Name field is blank. \n\nPlease enter your last name.")
document.forms[0].elements[3].focus();
return false;
}
return true;
}
function isAddress() {
if (document.forms[0].elements[4].value == "") {
alert ("\n The Address field is blank. \n\nPlease enter your address.")
document.forms[0].elements[4].focus();
return false;
}
return true;
}
function isCity()
{
if (document.forms[0].elements[5].value == "")
{
alert ("\n The City field is blank. \n\nPlease enter your city.")
document.forms[0].elements[5].focus();
return false;
}
return true;
}
function isState() {
if (document.forms[0].elements[6].value == "") {
alert ("\n The state field is blank.\n\nPlease enter your state.")
document.forms[0].elements[6].focus();
return false;
}
return true;
}
function isZip() {
if (document.forms[0].elements[7].value == "") {
alert ("\n The Zip code field is blank. \n\nPlease enter your Zip code.")
document.forms[0].elements[7].focus();
return false;
}
return true;
}
// End -->
</SCRIPT>

<!-- STEP TWO: Copy this code into the BODY of your HTML document -->

<BODY>

<CENTER>
<FORM enctype="text/plain" name="addform" method='get'
action='mailto:[email protected]?subject=TJS - Mailing List' onSubmit="return submitForms()">
<TABLE border=3 width=430 cellpadding=10><TD align="center">
<strong>
<font face="arial" size=+2>Join the Mailing List!</font>
</strong>
</TABLE>
<input type="hidden" name="Form" value="Submit Sub">
<TABLE border=3 cellspacing=0 cellpadding=2 bgcolor="#C0C0C0">
<tr valign=baseline>
<TD>
<font face="arial">Email Address:</font>
</TD>
<TD>
<input type=text name="Email Address" size=35,1 maxlength=80>
</TD>
</tr>
<tr>
<TD>
<font face="arial">First Name:</font>
</TD>
<TD>
<input type=text name="First Name" size=35,1 maxlength=80>
</TD></tr>
<tr>
<TD>
<font face="arial">Last Name:</font>
</TD>
<TD>
<input type=text name="Last Name" size=35,1 maxlength=80>
</TD></tr>
<tr>
<TD>
<font face="arial">Address:</font>
</TD>
<TD>
<input type=text name="Address" size=35,1 maxlength=80>
</TD></tr>
<tr>
<TD>
<font face="arial">City:</font>
</TD>
<TD>
<input type=text name="City" size=35,1 maxlength=80>
</TD></tr>
<tr>
<TD>
<font face="arial">State:</font>
</TD>
<TD>
<input type=text name="State" size=10,1 maxlength=25>
</TD></tr>
<tr>
<TD>
<font face="arial">Zip Code:</font>
</TD>
<TD>
<input type=text name="Zip" size=20,1 maxlength=35>
</TD></tr></TABLE>


<center>
<input type="submit" value=" Submit ">
<input type="button" value=" Return " onclick="window.location='your-page.html'">
<input type="reset" value="Reset Form" onclick=resetform()>
</FORM>
</CENTER>

<p><center>

Tr-Web Javascript Arşivi</font>
</center><p>

<!-- Script Size: 4.56 KB -->​
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
(PHP ile Döviz Kuru Alma)
--------------------------------------------------------------------------------------------

<?php
function CropSt($st, $what, $len=100) {
$start = strpos( $st, $what );
$st = substr( $st, $start+strlen($what), $len );
return $st;
}
function GetRoE($st, $endsep = " TL") {
$end = strpos( $st, $endsep);
$st = substr( $st, 0, $end);
$st = ereg_replace( ",", "", $st );
return (int)$st;
}

function SaveStringToFile($filename, $text) {
$file = @fopen($filename, "w");
if ( $file ) {
fputs($file, $text);
fclose($file);
}
}

// VillaDöviz
$vd = @file( "http://www.villadoviz.com/" );
if ( $vd ) {
$vd = implode("", $vd);
$vd = CropSt( $vd, "<font color=\"#800000\">USD</font>", 90);
$vd = CropSt( $vd, "Alış ");

$alis = GetRoE($vd);
$vd = trim(CropSt($vd, "Satış " ));
$satis = GetRoE($vd);
}

// T.C. Merkez Bankası
$tcmb_today = @file("http://www.tcmb.gov.tr/kurlar/today.html");
if ( $tcmb_today ) {
$tcmb_today = implode("", $tcmb_today);
$tcm_today = ereg_replace("\r", "", $tcmb_today);
$start = strpos($tcmb_today, "ABD DOLARI");
$tcmb_today = trim(substr($tcmb_today, $start+14, 70));
while ( ereg( "[ ]{2,}", $tcmb_today)>0 )
$tcmb_today = ereg_replace( "[ ]{2,}", " ", $tcmb_today );
/* while ( strpos($tcmb_today, " ")>0 )
$tcmb_today = ereg_replace(" ", " ", $tcmb_today); */
$tcmb_today = explode( " ", $tcmb_today );
$doviz_alis = (int)ereg_replace( ",", "", $tcmb_today[0] );
$doviz_satis = (int)ereg_replace( ",", "", $tcmb_today[1] );
$efektif_alis = (int)ereg_replace( ",", "", $tcmb_today[2] );
$efektif_satis = (int)ereg_replace( ",", "", $tcmb_today[3] );
}

// Yatırımcı Köşesi - Superonline
$yatirimci = @file("http://www.borsadan.com/doviz.asp");
if ( $yatirimci ) {
$yatirimci = implode("", $yatirimci);
$yatirimci = CropSt( $yatirimci, '<td class="data">ABD Doları</td>', 300);
SaveStringToFile("sol.txt", "SOL\n\n".$yatirimci);
$yatirimci = strip_tags($yatirimci);
$yatirimci = ereg_replace( ",", "", trim($yatirimci) );
$yatirimci = ereg_replace( "\t|\n|\r", " ", $yatirimci );
while ( ereg( "[ ]{2,}", $yatirimci)>0 )
$yatirimci = ereg_replace( "[ ]{2,}", " ", $yatirimci );
$yatirimci = explode( " ", $yatirimci );
$y_alis = (int)$yatirimci[0];
$y_satis = (int)$yatirimci[1];
$y_endusuk = (int)$yatirimci[2];
$y_enyuksek = (int)$yatirimci[3];
$y_saat = $yatirimci[4];
}

// KOÇ Bank
$koc = @file("http://www.kocbank.com.tr/_index/index_main.asp");
if ( $koc ) {
$koc = implode("", $koc);
$koc = CropSt( $koc, ' USD:', 265);
$koc = CropSt( $koc, '<font face="Arial, Helvetica, sans-serif" size="1">',151);
$koc = strip_tags($koc);
$koc = ereg_replace( "\.", "", trim($koc) );
$koc = ereg_replace( "\t|\n|\r", " ", $koc );
while ( ereg( "[ ]{2,}", $koc)>0 )
$koc = ereg_replace( "[ ]{2,}", " ", $koc );
$koc = explode( " ", $koc );
$koc_alis = (int)$koc[0];
$koc_satis = (int)$koc[1];
} else
echo "HATA";
?>

<?php
/*
******************* ÖRNEK SAYFA *************************
*/
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso8859-9">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<title></title>
</head>
<body bgcolor="#FEECDD">
<center>
<table border="0" width="300" cellspacing="1" cellpadding="1">
<?php
if ( $vd ) {
?>
<tr bgcolor="#FF8000">
<td colspan="2" align="center"><font face="Verdana"color="#FFFFFF">VillaDöviz</font></td>
</tr>
<tr>
<td width="110"><font face="Verdana">$USD Alış</font></td>
<td align="right"><font face="Verdana"><?php echo number_format($alis, 0, ",", ".");?>TL</font></td>
</tr>
<tr>
<td><font face="Verdana">$USD Satış</font></td>
<td align="right"><font face="Verdana"><?php echo number_format($satis, 0, ",",".");?> TL</font></td>
</tr>
<tr>
<td colspan="2"><hr></td>
</tr>
<?php
}
if ( $tcmb_today ) {
?>
<tr bgcolor="#FF8000">
<td colspan="2" align="center"><font face="Verdana" color="#FFFFFF">MerkezBankası</font></td>
</tr>
<tr>
<td width="110"><font face="Verdana">Döviz Alış</font></td>
<td align="right"><font face="Verdana"><?php echo number_format($doviz_alis, 0, ",",".");?> TL</font></td>
</tr>
<tr>
<td><font face="Verdana">Döviz Satış</font></td>
<td align="right"><font face="Verdana"><?php echo number_format($doviz_satis, 0, ",",".");?> TL</font></td>
</tr>
<tr>
<td><font face="Verdana">Efektif Alış</font></td>
<td align="right"><font face="Verdana"><?php echo number_format($efektif_alis, 0, ",",".");?> TL</font></td>
</tr>
<tr>
<td><font face="Verdana">Efektif Satış</font></td>
<td align="right"><font face="Verdana"><?php echo number_format($efektif_satis, 0,",", ".");?> TL</font></td>
</tr>
<tr>
<td colspan="2"><hr></td>
</tr>
<?php
}
if ( $yatirimci ) {
?>
<tr bgcolor="#FF8000">
<td colspan="2" align="center"><font face="Verdana" color="#FFFFFF">YatırımcıKöşesi - Superonline</font> <font face="Verdana" color="#FFFFFF" size="1">(<?php echo$y_saat; ?>)</font></td>
</tr>
<tr>
<td width="110"><font face="Verdana">Döviz Alış</font></td>
<td align="right"><font face="Verdana"><?php echo number_format($y_alis, 0, ",", ".");?> TL</font></td>
</tr>
<tr>
<td><font face="Verdana">Döviz Satış</font></td>
<td align="right"><font face="Verdana"><?php echo number_format($y_satis, 0, ",", ".");?> TL</font></td>
</tr>
<tr>
<td><font face="Verdana">En Düşük</font></td>
<td align="right"><font face="Verdana"><?php echo number_format($y_endusuk, 0, ",","."); ?> TL</font></td>
</tr>
<tr>
<td><font face="Verdana">En Yüksek</font></td>
<td align="right"><font face="Verdana"><?php echo number_format($y_enyuksek, 0, ",","."); ?> TL</font></td>
</tr>
<?php
}
if ( $koc ) {
?>
<tr bgcolor="#FF8000">
<td colspan="2" align="center"><font face="Verdana" color="#FFFFFF">KoçBankası</font></td>
</tr>
<tr>
<td width="110"><font face="Verdana">Döviz Alış</font></td>
<td align="right"><font face="Verdana"><?php echo number_format($koc_alis, 0, ",","."); ?> TL</font></td>
</tr>
<tr>
<td><font face="Verdana">Döviz Satış</font></td>
<td align="right"><font face="Verdana"><?php echo number_format($koc_satis, 0, ",","."); ?> TL</font></td>
</tr>
<?php
}
?>
</table>
</center>
</body>
</html>​
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
(PHP ile Access Veritabanı Bağlantısı)
--------------------------------------------------------------------------------------------
<HTML>
<HEAD>
<TITLE> PHP - ADODB Bağlantısı </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="idris katar">
<META HTTP-EQUIV="Content-Type" CONTENT="text-html; charset=Windows-1254">
</HEAD>

<BODY>
<?

// Connection
$conn = new COM("ADODB.Connection") or die("ADODB başlatılamıyor");
$conn->Open("DRIVER={Microsoft Access Driver (*.mdb)};DBQ=rehber.mdb");

// Recordset
$rs = $conn->Execute("SELECT * FROM adres");

// Alan isimlerini döküyoruz
echo "<TABLE border='1'><TR><TH colspan='6'>Veriler</TH><TR>";
echo "<TR>";
echo "<TH>" . $rs->Fields[0]->name . "</TH>";
echo "<TH>" . $rs->Fields[1]->name . "</TH>";
echo "<TH>" . $rs->Fields[2]->name . "</TH>";
echo "<TH>" . $rs->Fields[3]->name . "</TH>";
echo "<TH>" . $rs->Fields[4]->name . "</TH>";
echo "<TH>" . $rs->Fields[5]->name . "</TH>";
echo "</TR>";

// Verileri döküyoruz
while (!$rs->EOF)
{
echo "<tr>";
echo "<td>" . $rs->Fields[0]->value . " </td>";
echo "<td>" . $rs->Fields[1]->value . " </td>";
echo "<td>" . $rs->Fields[2]->value . " </td>";
echo "<td>" . $rs->Fields[3]->value . " </td>";
echo "<td>" . $rs->Fields[4]->value . " </td>";
echo "<td>" . $rs->Fields[5]->value . " </td>";
echo "</tr>";
$rs->MoveNext();
}
echo "</TABLE>";

// Kapanış
$rs->Close();
$conn->Close();

$rs->Release();
$conn->Release();

$rs = null;
$conn = null;

?>

</BODY>
</HTML>​
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
(PHP Formmail)
--------------------------------------------------------------------------------------------

<form method="post" action="formmail.php">
<input type="hidden" name="recipient" value="[BURAYA MAIL ADRES YAZ]">
<input type="hidden" name="subject" value="[KONU YAZ]">
<input type="hidden" name="req" value="[GEREKLİLİĞİ KONTROL EDİLECEK ALANLARI VİRGÜLLE AYIRIP YAZ]">
[Formun geri kalanını istediğin gibi yapılandır]
</form>
--------------------------------------------------------------------------
[Bu kısmı formmail.php dıye kaydedin]
<html>
<head>
<title>Formmail</title>
</head>
<body bgcolor="black">

<?
//----------------------------------
// OPTIONAL PARAMETERS
//----------------------------------

// Message header such as "confirm" or "error"
$headersize="4";
$headercolor="Lime";
// Message body
$textsize="3";
$textcolor="0000ff";
$linkcolor="ffcc99";


/*****************************************************/
/* YOU DO NOT NEED TO MODIFY ANYTHING BELOW */
/***************************************************/




if( !empty($HTTP_POST_VARS))
{
// if any form submission start the process
function prompt_user($messageheader,$promptmessage)
{
global $l,$goback,$fm_error,$plsfill,$invalidaddress,$fm_confirm,$sent,$unsent,$author;
global $headersize,$headercolor,$textsize,$textcolor,$linkcolor;
include("inc/Header.php");
echo "

<center>
<B><font size=\"$headersize\" color=\"$headercolor\">
----------------------------

:: ::

----------------------------

</font>


<font size=\"$textsize\" color=\"$textcolor\">
Mesajınız Gönderildi!..</font>



<a href='javascript:history.go(-2)'>
<font size='2' color='$linkcolor'>Back Main</font></a>
<B></center>";
exit;
}

// function to check the empty fields
function check_fields($fieldname,$fieldtype)
{
global $fm_error,$plsfill;
if (empty($fieldname))
{
prompt_user("$fm_error","$plsfill
* $fieldtype");
}
}

// function to check the email validity
function check_email($mailtocheck)
{
global $fm_error,$plsfill,$invalidaddress;
$mail_test= trim($mailtocheck);
if (!eregi("^[_\\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\\.)+[a-z]{2,3}$", $mail_test))
{
prompt_user("$fm_error","$invalidaddress :
$mail_test");
}
}

// check if there are required fields
if ($req)
{
$requiredfields=explode(",",$req);
for ($temp=0;$temp<count($requiredfields);$temp++)
{
$requiredfields[$temp]=trim ($requiredfields[$temp]);
if ($requiredfields[$temp]=="email")
{
check_email("${$requiredfields[$temp]}");
}
else
{
check_fields ("${$requiredfields[$temp]}","$requiredfields[$temp]");
}
}
}

/* default values for script will take place in the hidden form fields */
$def[]="subject";
$def[]="req";
$def[]="recipient";

// get the IP and the date
$ip=getenv("REMOTE_ADDR");
$date=date("d-m-Y H:i:s");

// message body
$message=$defaultmessage."\n\n";
$message.="From :".$email."\n";
$message.="Date :".$date."\n";
$message.="IP :".$ip."\n";
$message.="------------------------------------\n";
foreach($HTTP_POST_VARS as $formfield => $value)
{
$found=0;
for($i=0;$i<count($def);$i++)
{
if($formfield==$def[$i])
{
$found=1;
}
}
if(!$found==1)
{
$message.=$formfield." : ".$value."\n";
}
}
$message.="------------------------------------\n\n\n";
$message.="";
$headers ="From: $email\n";

// check the subject
if(!$subject)
{
$subject=$defaultsubject;
}

// mail the form
if(@mail($recipient,$subject,$message,$headers))
{
prompt_user("$fm_confirm","$sent");
echo"<center></center>";
}
else
{
prompt_user("$fm_error","$unsent");
echo"<center></center>";
}
}
else
{
echo"<center><font face=System color=lime>

Mesaj gonderilmedi!..
Fatal ERROR: 000FFFFx000DEEE</font></center>";
}

?>
</body>
</html>​
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
(PHP Anket)
--------------------------------------------------------------------------------------------

<html><head>
</head>
<body>
<form action="anket.php" method="post" name="anket">
<table border="1" width="350" cellspacing="0" cellpadding="0" bordercolor="#000000">
<tbody>
<tr>
<td width="100%" colspan="2">
<p align="left">Hangi İşletim Sistemini Kullanıyorsunuz?</p>
</td>
</tr>
<tr>
<td><input type="radio" name="sonuc" value="1">
</td>
<td width="96%">Windows 95/98</td>
</tr>
<tr>
<td><input type="radio" name="sonuc" value="2"> </td>
<td width="96%">Windows ME</td>
</tr>
<tr>
<td><input type="radio" name="sonuc" value="3"> </td>
<td width="96%">Windows NT/2000</td>
</tr>
<tr>
<td><input type="radio" name="sonuc" value="4"></td>
<td width="96%">LİNUX</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" value="Gönder" > <input type="reset" value="Temizle"></td>
</tr>
</tbody>
</table>
</form>
</body></html>​
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
(Mail Atma Formu)
--------------------------------------------------------------------------------------------------------
<!-- TWO STEPS TO INSTALL MAIL - PICK SUBJECT:

1. Paste the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->

<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function getCookie(name){
var cname = name + "=";
var dc = document.cookie;
if (dc.length > 0) {
begin = dc.indexOf(cname);
if (begin != -1) {
begin += cname.length;
end = dc.indexOf(";", begin);
if (end == -1) end = dc.length;
return unescape(dc.substring(begin, end));
}
}
var blank = "";
return blank;
}
function setCookie(name, value, expires) {
document.cookie = name + "=" + escape(value) +
((expires != null) ? "; expires=" + expires.toGMTString() : "")
+ "; path=/";
}
function setName() {
var expdate = new Date ();
expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000 * 365));
var prompt=i = document.Mail.name.value;
setCookie("name", i, expdate);
}
function getName() {
if(getCookie("name") != null) {
document.Mail.Name.value = getCookie("emailname");
}
}
function getInfo() {
var now= new Date();
document.Mail.Info.value = "Browser: " + navigator.userAgent;
document.Mail.Info.value += "Date:" + now;
}
function checkMultiple() {
if (getCookie("emailsent") == 'true') return true;
else return false;
}
function process() {
setCookie("emailsent", "true");
with (document.Mail) {
if (Subject.selectedIndex == 1) action = "mailto:[email protected]?subject=TJS - Comment";
else if (Subject.selectedIndex == 2) action = "mailto:[email protected]?subject=TJS - Question";
else if (Subject.selectedIndex == 3) action = "mailto:[email protected]?subject=TJS - Suggestion";
else if (Subject.selectedIndex == 4) action = "mailto:[email protected]?subject=TJS - Broken Link";
else action = "mailto:[email protected]?subject=TJS - Other";
}
}
function formCheck() {
var passed = false;
with (document.Mail) {
if (Subject.selectedIndex == 0) {
alert("Please pick a subject.");
Subject.focus();
}
else if (Name.value == "") {
alert("Please inlcude your name.");
Name.focus();
}
else if (checkMultiple()) {
if (confirm("You just sent an e-mail from this form, are you sure you want to send another?")) {
process();
passed = true;
}
}
else {
process();
passed = true;
}
}
return passed;
}
// End -->
</SCRIPT>

<!-- STEP TWO: Put this code into the BODY of your HTML document -->

<BODY>

<CENTER>
<FONT FACE = "Times" SIZE = 3>
Any thing you would like to tell us? Any comments, suggestions, or questions?
<BR>
<DD>
If you are using Internet Explorer or would rather mail directly, then click <A HREF = "mailto:[email protected]?subject=TJS - Mail">here</A>.
</DD>
<BR>
<FORM NAME = "Mail" ACTION = "mailto:[email protected]?subject=TJS - Form" METHOD = "POST" ENCTYPE = "text/plain" onSubmit="return formCheck();">
<INPUT TYPE = "hidden" SIZE = 0 NAME = "Info">
<TABLE BORDER = 0 CELLPADDING = 10 CELLSPACING = 0>
<TR><TD>
Name:
<INPUT TYPE = "text" NAME = "Name" onChange = "setName()">
</TD><TD ALIGN = RIGHT >
Subject:
<SELECT NAME = "Subject">
<OPTION SELECT>Please Select A Subject</OPTION>
<OPTION>1. Comment</OPTION>
<OPTION>2. Question</OPTION>
<OPTION>3. Suggestion</OPTION>
<OPTION>4. Broken Link</OPTION>
<OPTION>5. None of the above</OPTION>
</SELECT>
</TD></TR>

<TR>
<TD COLSPAN = 2>
Comments, questions, suggestions, broken links, anything!! :
<BR><BR>
<TEXTAREA NAME = "Comments, Suggestions" COLS = 75 ROWS = 6>​
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Kişilerin Kullanıcı Bilgilerini Gösteren bir Java

1 part to this script, simply paste it where you want it to display.
======================================================================

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
//by Matthew Saniel: http://fl5goscript.homestead.com
//submitted and displayed on www.a1javascripts.com
var xy = navigator.appVersion;
xz = xy.substring(0,4);
document.write("<center><table border=1 cellpadding=2><tr><td>");
document.write("<center>", navigator.appName,"");
document.write("</td></tr><tr><td>");
document.write("<center><table border=1 cellpadding=2><tr>");
document.write("<td>Code Name: </td><td><center>");
document.write("", navigator.appCodeName,"</td></tr>");
document.write("<tr><td>Version: </td><td><center>");
document.write("",xz,"</td></tr>");
document.write("<tr><td>Platform: </td><td><center>");
document.write("", navigator.platform,"</td></tr>");
document.write("<tr><td>Pages Viewed: </td><td><center>");
document.write("", history.length," </td></tr>");
document.write("<tr><td>Java enabled: </td><td><center>");
if (navigator.javaEnabled()) document.write("sure is!</td></tr>");
else document.write("not today</td></tr>")
document.write("<tr><td>Screen Resolution: </td><td><center>");
document.write("",screen.width," x ",screen.height,"</td></tr>");
document.write("</table></tr></td></table></center>");
// End -->
</script>​
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
(Kronometre)
--------------------------------------------------------------------------------------------------------
<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
var ms = 0;
var state = 0;
function startstop() {
if (state == 0) {
state = 1;
then = new Date();
then.setTime(then.getTime() - ms);
} else {
state = 0;
now = new Date();
ms = now.getTime() - then.getTime();
document.stpw.time.value = ms;
}
}
function swreset() {
state = 0;
ms = 0;
document.stpw.time.value = ms;
}
function display() {
setTimeout("display();", 50);
if (state == 1) {now = new Date();
ms = now.getTime() - then.getTime();
document.stpw.time.value = ms;
}
}
// End -->
</SCRIPT>

<!-- STEP TWO: Add this onLoad event handler into the BODY tag -->

<BODY onLoad="display()">

<!-- STEP THREE: Put this code into the BODY of your HTML document -->

<CENTER>
<FORM NAME="stpw">
Time:
<INPUT TYPE="text" Name="time">
<INPUT TYPE="BUTTON" Name="ssbutton" VALUE="Start/Stop" onClick="startstop()">
<INPUT TYPE="BUTTON" NAME="reset" VALUE="Reset" onClick="swreset()">
</FORM>
</CENTER>​
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Kisinin Tüm Bilgilerini Sunan Güzel bir Java

3 parts to this script
===========================================================
part 1
==============================================================

<script LANGUAGE="JavaScript">

<!-- begin

function display() {

window.onerror=null;

colors = window.screen.colorDepth;

document.form.color.value = Math.pow (2, colors);

if (window.screen.fontSmoothingEnabled == true)

document.form.fonts.value = "Yes";

else document.form.fonts.value = "No";

document.form.colordepth.value = window.screen.colorDepth;

document.form.width.value = window.screen.width;

document.form.height.value = window.screen.height;

document.form.maxwidth.value = window.screen.availWidth;

document.form.maxheight.value = window.screen.availHeight;

if (navigator.javaEnabled() < 1) document.form.java.value="No";

if (navigator.javaEnabled() == 1) document.form.java.value="Yes";

if(navigator.javaEnabled() && (navigator.appName != "Microsoft Internet Explorer")) {

vartool=java.awt.Toolkit.getDefaultToolkit();

addr=java.net.InetAddress.getLocalHost();

host=addr.getHostName();

ip=addr.getHostAddress();

document.form.hostip.value = "Your host name is '" + host + "'\nYour IP address is " + ip;

}

}

// end -->

</script>
<script LANGUAGE="JavaScript1.0">

<!-- Begin

jsver = "1.0";

// End -->

</script>
<script LANGUAGE="JavaScript1.1">

<!-- Begin

jsver = "1.1";

// End -->

</script>
<script Language="JavaScript1.2">

<!-- Begin

jsver = "1.2";

// End -->

</script>
<script Language="JavaScript1.3">

<!-- Begin

jsver = "1.3";

// End -->

</script>
<script LANGUAGE="JavaScript">

//original by javascripts source
//modified, improved and added to by a1javascripts.com

<!-- Begin

var timerID = null;

var timerRunning = false;

function stopclock (){

if(timerRunning)

clearTimeout(timerID);

timerRunning = false;

}

function showtime () {

var now = new Date();

var hours = now.getHours();

var minutes = now.getMinutes();

var seconds = now.getSeconds()

var timeValue = "" + ((hours >12) ? hours -12 :hours)

if (timeValue == "0") timeValue = 12;

timeValue += ((minutes < 10) ? ":0" : ":") + minutes

timeValue += ((seconds < 10) ? ":0" : ":") + seconds

timeValue += (hours >= 12) ? " P.M." : " A.M."

document.clock.face.value = timeValue;

timerID = setTimeout("showtime()",1000);

timerRunning = true;

}

function startclock() {

stopclock();

showtime();

}

// End -->

</script>
======================================================================
part 2
=====================================================================

<body OnLoad="display(),startclock()">

=====================================================================
part 3
======================================================================

<!-- -->
<center><table BORDER=0 WIDTH="720" BGCOLOR="#FFFFFF" >
<tr>
<td COLSPAN="2" BGCOLOR="#D2E6F8">
<center><font face="Arial,Helvetica"><font size=+1>Total System Info</font></font></center>
</td>
</tr>

<tr>
<td WIDTH="270" BGCOLOR="#000099"><font face="Helvetica"><font color="#FFFFFF"><font size=-1>Current
Date and Time</font></font></font>:</td>

<td WIDTH="450" BGCOLOR="#999999"><script LANGUAGE="JavaScript">

//original found at javascript source
//modified and updated by www.a1javascripts.com

<!-- Begin

var months=new Array(13);

months[1]="January";

months[2]="February";

months[3]="March";

months[4]="April";

months[5]="May";

months[6]="June";

months[7]="July";

months[8]="August";

months[9]="September";

months[10]="October";

months[11]="November";

months[12]="December";

var time=new Date();

var lmonth=months[time.getMonth() + 1];

var date=time.getDate();

var year=time.getYear();



// Y2K Fix by Isaac Powell

// http://onyx.idbsu.edu/~ipowell



if ((navigator.appName == "Microsoft Internet Explorer") && (year < 2000))

year="19" + year;

if (navigator.appName == "Netscape")

year=1900 + year;

document.write(""+ lmonth + " ");

document.write(date + ", " + year);

// End -->

</script>
<form name="clock"><input type="text" name="face" size=13 value=""></form></td>
</tr>

<tr>
<td BGCOLOR="#000099"><font face="Helvetica"><font color="#FFFFFF"><font size=-1>Your
CPU Class is:</font></font></font></td>

<td BGCOLOR="#999999"><script>

document.write(navigator.cpuClass)

</script>
</td>
</tr>

<tr>
<td BGCOLOR="#000099"><font face="Helvetica"><font color="#FFFFFF"><font size=-1>Your
Operating System is:</font></font></font></td>

<td BGCOLOR="#999999"><script LANGUAGE="JavaScript">

<!--

function checkOS() {

if(navigator.userAgent.indexOf('IRIX') != -1)

{ var OpSys = "Irix"; }

else if((navigator.userAgent.indexOf('Win') != -1) &&

(navigator.userAgent.indexOf('98') != -1))

{ var OpSys = "Windows 98"; }

else if((navigator.userAgent.indexOf('Win') != -1) &&

(navigator.userAgent.indexOf('95') != -1))

{ var OpSys = "Windows 95"; }

else if(navigator.appVersion.indexOf("16") !=-1)

{ var OpSys = "Windows 3.1"; }

else if (navigator.appVersion.indexOf("NT") !=-1)

{ var OpSys= "Windows NT"; }

else if(navigator.appVersion.indexOf("SunOS") !=-1)

{ var OpSys = "SunOS"; }

else if(navigator.appVersion.indexOf("Linux") !=-1)

{ var OpSys = "Linux"; }

else if(navigator.userAgent.indexOf('Mac') != -1)

{ var OpSys = "Macintosh"; }

else if(navigator.appName=="WebTV Internet Terminal")

{ var OpSys="WebTV"; }

else if(navigator.appVersion.indexOf("HP") !=-1)

{ var OpSys="HP-UX"; }

else { var OpSys = "other"; }

return OpSys;

}

// -->

</script>
<script LANGUAGE="JavaScript">

<!--

var OpSys = checkOS();

document.write(OpSys);

// -->

</script>
</td>
</tr>

<tr>
<td BGCOLOR="#000099"><font face="Helvetica"><font color="#FFFFFF"><font size=-1>You
are currently using:</font></font></font></td>

<td BGCOLOR="#999999"><script Language="JavaScript">



<!-- This is a combination of two scripts one written by Murat Muradoglu, [email protected]. I Jeff Bouton, [email protected] modified the script so that it will detect the AOL Browser as well as the new versions of Internet Explorer 5 and Netscape 4.61. further improved and undated by a1javascripts.com

var version = 0;

if(navigator.userAgent.indexOf('AOL 5') !=-1) document.write("America Online 5.0");

else if

(navigator.userAgent.indexOf('AOL 4') != -1) document.write("America Online 4.0");

else if

(navigator.userAgent.indexOf('AOL 3') != -1) document.write("America Online 3.0");

else if

(navigator.userAgent.indexOf('MSIE 5.5') != -1) document.write("Internet Explorer 5.5");

else if

(navigator.userAgent.indexOf('MSIE 5') != -1) document.write("Internet Explorer 5.0");

else if

(navigator.userAgent.indexOf('MSIE 4') != -1) document.write("Internet Explorer 4.0");

else if

(navigator.userAgent.indexOf('MSIE 3') != -1) document.write("Internet Explorer 3.0!");

else if

(navigator.userAgent.indexOf("Mozilla/4.73") != -1) document.write("Netscape 4.73");

else if

(navigator.userAgent.indexOf("Mozilla/4.7") != -1) document.write("Netscape 4.7");

else if

(navigator.userAgent.indexOf("Mozilla/4.61") != -1) document.write("Netscape 4.61");

else if

(navigator.userAgent.indexOf("Mozilla/4.5") != -1) document.write("Netscape 4.5")

else if

(navigator.userAgent.indexOf("Mozilla/4") != -1) document.write("Netscape 4.0");

else if

(navigator.userAgent.indexOf("Mozilla/3") != -1) document.write("Netscape 3.0");

else if

(navigator.userAgent.indexOf("Mozilla/2") != -1) document.write("Netscape 2");

else if

(navigator.userAgent.indexOf("MSIE 4.5") != -1) document.write("Microsoft Internet Explorer 4.5 for Macintosh");

else if

(navigator.appName=="WebTV Internet Terminal") document.write("WebTV Browser");

else if

(navigator.appName != "Microsoft Internet Explorer" && navigator.appName != "Netscape") document.write("You are not running IE, Netscape, AOL, or WebTV");

else version = 8;

// -->

</script>
</td>
</tr>

<tr>
<td BGCOLOR="#000099"><font face="Helvetica"><font color="#FFFFFF"><font size=-1>The
Application code of your browser is:</font></font></font></td>

<td BGCOLOR="#999999"><script>

document.write(navigator.appCodeName)

</script>
<script>

<!--

var version = 0;

if

(navigator.userAgent.indexOf("Mozilla/4.73") != -1) document.write("4.73");

else if

(navigator.userAgent.indexOf("Mozilla/4.72") != -1) document.write("4.72");

else if

(navigator.userAgent.indexOf("Mozilla/4.7") != -1) document.write("4.7");

else if

(navigator.userAgent.indexOf("Mozilla/4.61") != -1) document.write("4.61");

else if

(navigator.userAgent.indexOf("Mozilla/4.5") != -1) document.write("4.5")

else if

(navigator.userAgent.indexOf("Mozilla/4") != -1) document.write("4.0");

else if

(navigator.userAgent.indexOf("Mozilla/3") != -1) document.write("3.0");

else if

(navigator.userAgent.indexOf("Mozilla/2") != -1) document.write("2.0");

else document.write("version undetermined");



// -->

</script>
</td>
</tr>

<tr BGCOLOR="#999999">
<td BGCOLOR="#000099"><font face="Helvetica"><font color="#FFFFFF"><font size=-1>The
Language of Your Browser is:</font></font></font></td>

<td><script language="javascript">document.write(navigator.browserLanguage)</script>
</td>
</tr>

<tr>
<td BGCOLOR="#000099"><font face="Helvetica"><font color="#FFFFFF"><font size=-1>You
arrived at this page from URL:</font></font></font></td>

<td BGCOLOR="#999999"><script Language="JavaScript">

<!--

document.write(""+ document.referrer +"" )

//-->

</script>
</td>
</tr>

<tr>
<td BGCOLOR="#000099"><font face="Helvetica"><font color="#FFFFFF"><font size=-1>Your
Javascript Version:</font></font></font></td>

<td BGCOLOR="#999999"><script LANGUAGE="JavaScript">

<!-- Begin

document.write("" + jsver + "")

// End -->

</script>
</td>

<td>
<center><form name=form></center>
</td>
</tr>

<tr>
<td BGCOLOR="#000099"><font face="Arial,Helvetica"><font color="#FFFFFF"><font size=-1>Hmm,
Cookies?</font></font></font></td>

<td BGCOLOR="#999999"><script Language="JavaScript">

<!-- hide script from non compliant broswers

var oneDay= 1*24*60*60*1000;

var expDate = new Date();

expDate.setTime (expDate.getTime() + oneDay);

var cookieExpires = expDate.toGMTString();

document.cookie="verifyCookie=test; expires="+cookieExpires

if (document.cookie.length>0)

document.write("Your browser supports cookies.");

else {

document.write("Your browser doesn't support cookies, ")

document.write("or they're currently disabled.");

document.write(document.cookie.substring(0,document.cookie.length)+"<BR><BR>");

}

document.cookie="verifyCookie=CLEAR; expires=Sun, 09-Nov-97 01:00:00 GMT";

//-->

</script>
</td>

<td></td>
</tr>

<tr>
<td BGCOLOR="#000099"><font face="Helvetica"><font color="#FFFFFF"><font size=-1>Java
Enabled:</font></font></font></td>

<td BGCOLOR="#999999"><input type=text size=3 maxlength=3 name=java></td>
</tr>

<tr>
<td BGCOLOR="#000099"><font face="Arial,Helvetica"><font color="#FFFFFF"><font size=-1>You
Have Been Here:</font></font></font></td>

<td BGCOLOR="#999999"><script language="Javascript">
<!--

function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0)
break;
}
return null;
}

function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}

function DeleteCookie(name) {
var exp = new Date();
FixCookieDate (exp); // Correct for Mac bug
exp.setTime (exp.getTime() - 1); // This cookie is history
var cval = GetCookie (name);
if (cval != null)
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}

var expdate = new Date();
var num_visits;
expdate.setTime(expdate.getTime() + (5*24*60*60*1000));
if (!(num_visits = GetCookie("num_visits")))
num_visits = 0;
num_visits++;
SetCookie("num_visits",num_visits,expdate);
//-->
</script>
<script language="Javascript">
<!--

document.write(num_visits+" times");
//-->

</script>
</td>

<td></td>
</tr>

<tr>
<td BGCOLOR="#000099"><font face="Helvetica"><font color="#FFFFFF"><font size=-1>Host/IP:</font></font></font></td>

<td BGCOLOR="#999999"><input type=text size=60 maxlength=100 name=hostip></td>
</tr>

<tr>
<td BGCOLOR="#000099"><font face="Helvetica"><font color="#FFFFFF"><font size=-1>Current
Resolution:</font></font></font></td>

<td BGCOLOR="#999999"><input type=text size=4 maxlength=4 name=width>x <input type=text size=4 maxlength=4 name=height></td>
</tr>

<tr>
<td BGCOLOR="#000099"><font face="Helvetica"><font color="#FFFFFF"><font size=-1>Max
Resolution:</font></font></font></td>

<td BGCOLOR="#999999"><input type=text size=4 maxlength=4 name=maxwidth>x <input type=text size=4 maxlength=4 name=maxheight></td>
</tr>

<tr>
<td BGCOLOR="#000099"><font face="Helvetica"><font color="#FFFFFF"><font size=-1>Color
Depth:</font></font></font></td>

<td BGCOLOR="#999999"><input type=text size=2 maxlength=2 name=colordepth>bit</td>
</tr>

<tr>
<td BGCOLOR="#000099"><font face="Helvetica"><font color="#FFFFFF"><font size=-1>Number
of Colors:</font></font></font></td>

<td BGCOLOR="#999999"><input type=text size=8 maxlength=8 name=color></td>
</tr>

<tr>
<td BGCOLOR="#000099"><font face="Helvetica"><font color="#FFFFFF"><font size=-1>Anti-aliasing
fonts:</font></font></font></td>

<td BGCOLOR="#999999"><input type=text size=3 maxlength=3 name=fonts></td>

<td>
<center></form></center>
</td>
</tr>

<tr>
<td VALIGN=TOP BGCOLOR="#000099"><font face="Arial,Helvetica"><font color="#FFFFFF"><font size=-1>You
Have The Following Plugins Installed:</font></font></font></td>

<td BGCOLOR="#999999"><script language="JavaScript">
<!--
if(navigator.plugins.length > 1){
for(var i=0; i < navigator.plugins.length; i++){
document.write( "<li>" +navigator.plugins.name + "\n")
}
document.write("</ul>")
}
//-->
</script></td>

<td></td>
</tr>

<tr>
<td></td>
</tr>
</table></center>
<!-- -->
 
Üst