Java Kodları (Hepsi)

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Klasörde Kayan Yazı


<MARQUEE behavior=alternate bgColor=#ff0000 scrollDelay=155 align="middle">deneme mesajı</MARQUEE>
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Müzik dosyalarininiin bütününü çalin

project componentten microsoft common dialog control ü ekleyin
4 command 1 tanede text kutusu ekleyin

olduğu gibi forma yapıştırn

Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long

Private Declare Function mciGetErrorString Lib "winmm.dll" Alias "mciGetErrorStringA" (ByVal dwError As Long, ByVal lpstrBuffer As String, ByVal uLength As Long) As Long

Private Sub Command1_Click()
Dim Hata As Long
Dim HataMesaji As String * 128
'Mesajı gönderiyoruz
Hata = mciSendString("open " & Chr$(34) & Text1.Text & Chr$(34) & " alias YeniSes", 0, 0, 0)
'Hata Mesajını Alıyoruz
mciGetErrorString Hata, HataMesaji, 128
MsgBox HataMesaji
End Sub


Private Sub Command2_Click()
mciSendString "play YeniSes", 0, 0, 0
End Sub

Private Sub Command3_Click()
mciSendString "close Yenises", 0, 0, 0
End Sub



Private Sub Command4_Click()
On Error GoTo error

With CommonDialog1

.CancelError = True

.DialogTitle = "Ses Dosyası aç_-_-_-_-Sunasoft Yazılım Bilgisayar-_-_-_-_"
.Filter = "Şarkı Dosyaları (*.mp3) |*.mp3; |Ses Dosyaları (*.wav) |*.wav; |Midi Dosyaları (*.mid) |*.mid"
.InitDir = "c:\"
.ShowOpen


If Len(.FileName) = 0 Then Exit Sub

Text1.Text = .FileName
cmdPlay.SetFocus
End With

error:
End Sub

Private Sub Form_Load()

'''Buraları bilmesenizde olur ben sadece nasıl çalıştığını görün diya yaptım

Left = (Screen.Width - Width) \ 2
Top = (Screen.Height - Height) \ 2

Command1.Caption = "Yükle"
Command2.Caption = "Çal"
Command3.Caption = "Dur"
Command4.Caption = "Gözat"


Form1.Height = 4920
Form1.Width = 8820

Command1.Top = 720
Command1.Left = 480

Command2.Top = 1320
Command2.Left = 480

Command3.Top = 1920
Command3.Left = 480

Command4.Top = 2400
Command4.Left = 6600

Text1.Top = 2520
Text1.Left = 480

Text1.Height = 285
Text1.Width = 6015

End Sub
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Belli bir konumdaki video dosyasini çalma kodu

<center>
<OBJECT ID="mediaPlayer" WIDTH="384" HEIGHT="355"
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
CODEBASE="
http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" STANDBY="Die Microsoft Windows Media
Player components werden geladen! Bitte warten..."
TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="video.avi">
<PARAM NAME="AnimationAtStart" VALUE="1">
<PARAM NAME="ShowControls" VALUE="1">
<PARAM NAME="ShowTracker" VALUE="1">
<PARAM NAME="ShowDisplay" VALUE="1">
<PARAM NAME="ShowStatusBar" VALUE="1">
<PARAM NAME="AutoSize" VALUE="0">
<EMBED TYPE="application/x-mplayer2"
PLUGINSPAGE="
http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
FILENAME="video.avi"
SRC="video.avi"
NAME="mediaPlayer" SHOWCONTROLS="1" SHOWDISPLAY="0" SHOWSTATUSBAR="1"
WIDTH="384" HEIGHT="355">
</embed>
</object>
</center>
*****************************************************************************************

Bu Kod üzerindeki "video.avi" yazan tüm yerlere dosya ad ve uzantısını yazmanız gerekmektedir!
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Mouse sekli tüy gibi gözüksün

<style>
<!--
BODY{
cursor: url(http://seyfy.ekart.sitemynet.com/images/tuy.cur);
}
-->
</style>

<SCRIPT language=JavaScript>curPage=1;
document.oncontextmenu = function(){return false}
if(document.layers) {
window.captureEvents(Event.MOUSEDOWN);
window.onmousedown = function(e){
if(e.target==document)return false;
}
}
else {
document.onmousedown = function(){return false}
}</SCRIPT>
<script language="JavaScript1.2">

//Disable select-text script (IE4+, NS6+)- By Andy Scott
//Exclusive permission granted to Dynamic Drive to feature script
//Visit http://www.dynamicdrive.com for this script

function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
<!--- Hazirlayan ve Sunan http://www.duygusal.gibiyiz.biz site master i Seyfy --->
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Video izletir Belli bir url ile video çal

<embed name="RAOCXplayer" src="buraya Video nun url Yazyyorsunuz" type="application/x-mplayer2" ShowStatusBar="0" AutoSize="true" DisplaySize="0" AutoStart="true"></embed>​
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Yaziyi tersten yazdirma

#include<stdio.h>
#include<conio.h>
#include<string.h>

main()
{
char str[50];
int i;
printf("bir katar gir:\n");
gets(str);
for(i=strlen(str)-1; i>=0; i--)
printf("%c",str);
getch();
}
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
ulusal saati bulma

<!-- TWO STEPS TO INSTALL UNIVERSAL CLOCK:

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

<!-- STEP ONE: Paste 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
<!--By: Rakesh Jain ([email protected]) -->
<!-- Web Site: http://www.bhabus.com -->

function displaydatetime() {
if (!document.layers && !document.all) return;
var today;
var timeLocal;
var timeUTC;
today = new Date();
timeLocal = today.toLocaleString() + " " + "Local"; //Convert to current locale.
timeUTC = today.toUTCString(); //Convert to UTC.
if (document.layers) {
document.layers.clockLocal.document.write(timeLocal);
document.layers.clockLocal.document.close();
document.layers.clockUTC.document.write(timeUTC);
document.layers.clockUTC.document.close();}
else if (document.all) {
clockLocal.innerHTML = timeLocal;
clockUTC.innerHTML = timeUTC;}
setTimeout("displaydatetime()", 500)
}
window.onload = displaydatetime;
// End -->
</script>

</HEAD>

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

<BODY>

<span id=clockLocal style="position:relative;"></span>

<span id=clockUTC style="position:relative;"></span>


<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided

Tr-Web Javascript Ar&#351;ivi</font>
</center><p>

<!-- Script Size: 1.57 KB -->
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
tarih ve gün saati

<!-- TWO STEPS TO INSTALL CURRENT DATE & TIME (LONG):

1. Put the code into the BODY of your HTML document
2. Change your timezone number and your city name! -->

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

<BODY>

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

<!-- Begin
var day="";
var month="";
var myweekday="";
var year="";
newdate = new Date();
mydate = new Date();
dston = new Date('April 4, 1999 2:59:59');
dstoff = new Date('october 31, 1999 2:59:59');
var myzone = newdate.getTimezoneOffset();
newtime=newdate.getTime();

var zone = 6; // references your time zone

if (newdate > dston && newdate < dstoff ) {
zonea = zone - 1 ;
dst = " Pacific Daylight Savings Time";
}
else {
zonea = zone ; dst = " Pacific Standard Time";
}
var newzone = (zonea*60*60*1000);
newtimea = newtime+(myzone*60*1000)-newzone;
mydate.setTime(newtimea);
myday = mydate.getDay();
mymonth = mydate.getMonth();
myweekday= mydate.getDate();
myyear= mydate.getYear();
year = myyear;

if (year < 2000) // Y2K Fix, Isaac Powell
year = year + 1900; // http://onyx.idbsu.edu/~ipowell
myhours = mydate.getHours();
if (myhours >= 12) {
myhours = (myhours == 12) ? 12 : myhours - 12; mm = " PM";
}
else {
myhours = (myhours == 0) ? 12 : myhours; mm = " AM";
}
myminutes = mydate.getMinutes();
if (myminutes < 10){
mytime = ":0" + myminutes;
}
else {
mytime = ":" + myminutes;
};
arday = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
armonth = new Array("January ","February ","March ","April ","May ","June ","July ","August ","September ", "October ","November ","December ")
ardate = new Array("0th","1st","2nd","3rd","4th","5th","6th","7th","8th","9th","10th","11th","12th","13th","14th","15th","16th","17th","18th","19th","20th","21st","22nd","23rd","24th","25th","26th","27th","28th","29th","30th","31st");
// rename locale as needed.

var time = ("In Dallas, Texas, it is: " + myhours + mytime+ mm + ", " + arday[myday] +", " + armonth[mymonth] +" "+ardate[myweekday] + ", " + year+", " + dst +".");
document.write(time);
//-->
</SCRIPT>

<p><center>

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

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

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Yaprakl&#305; Takvim

<head></head>
<BODY>

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var Today=new Date();
var ThisDay=Today.getDay();
var ThisDate=Today.getDate();
var ThisMonth=Today.getMonth()+1;
var ThisYear=Today.getFullYear(); //included if you wish to insert the year
function DayTxt (DayNumber) {
var Day=new Array();
Day[0]="Pazar";
Day[1]="Pazartesi";
Day[2]="Sal&#305;";
Day[3]="&#199;ar&#351;amba";
Day[4]="Per&#351;embe";
Day[5]="Cuma";
Day[6]="Cumartesi";
return Day[DayNumber];
}
var DayName=DayTxt(ThisDay);
function MonthTxt (MonthNumber) {
var Month=new Array();
Month[1]="Ocak";
Month[2]="&#350;ubat";
Month[3]="Mart";
Month[4]="Nisan";
Month[5]="May&#305;s";
Month[6]="Haziran";
Month[7]="Temmuz";
Month[8]="A&#287;ustos";
Month[9]="Eyl&#252;l";
Month[10]="Ekim";
Month[11]="Kas&#305;m";
Month[12]="Aral&#305;k";
return Month[MonthNumber];
}
var MonthName=MonthTxt(ThisMonth);
var d = new Date();
var h = d.getHours();
document.write("<TABLE BORDER=3 BGCOLOR=WHITE WIDTH=75 HEIGHT=85 align=left>"+"<TD>"+"<p align=center>"+"<font size=-2 >"+DayName+"
"+"<font color=orangered size=+3 >"+ThisDate+"</font>"+"
"+MonthName+"
"+""+"</font>"+"</p>"+"</TD>"+"</TR>"+"</TABLE>");
if (h < 2) document.write("<P ALIGN=center>"+""+"G&#252;naydin!.:pp Yes, it's way past midnight."+""+"</P>");
else if (h < 3) document.write("<P ALIGN=center>"+""+"G&#252;naydin! Up early or working late?"+""+"</P>");
else if (h < 7) document.write("<P ALIGN=center>"+""+"G&#252;naydin! Up bright and early!"+""+"</P>");
else if (h < 12) document.write("<P ALIGN=center>"+""+"T&#252;naydin!"+""+"</P>");
else if (h < 17) document.write("<P ALIGN=center>"+""+"T&#252;naydin!"+""+"</P>");
else if (h < 23) document.write("<P ALIGN=center>"+""+"iyi ak&#351;amlar!"+""+"</P>");
else document.write("<P ALIGN=center>"+""+"A late good evening! Not much left of it now."+""+"</P>");
// End -->
</script>
<// HAZIRLAYAN VE SUNAN muratus Macho_M -->
</body>​
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
yaş hesaplama

<!-- THREE STEPS TO INSTALL AGE CALCULATOR:

1. Copy the coding into the HEAD of your HTML document
2. Add the onLoad event handler into the BODY tag
3. Put the last coding into the BODY of your HTML document -->

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

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Dev Pragad ([email protected]) -->
<!-- Web Site: http://www.geocities.com/devpragad -->

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

<!-- Begin
function start() {
document.form1.day.value = "";
document.form1.month.value = "";
document.form1.year.value = "";
document.form1.age.value = "";
document.form1.months.value = "";
document.form1.weeks.value = "";
document.form1.answer.value = "";
document.form1.hours.value = "";
document.form1.min.value = "";
document.form1.sec.value = "";
document.form1.bday.value = "";
document.form1.milli.value = "";
}
function run() {
var ap;
dd = document.form1.day.value;
mm = document.form1.month.value;
yy = document.form1.year.value;
with(document.form1) {
ap = parseInt(ampm.selectedIndex);
hr = parseInt(hrs.value);
if(hr <= 0 && hr >= 13) {
ap = null;
alert("asdf")
}
}
main="valid";
if ((mm < 1) || (mm > 12) || (dd < 1) || (dd > 31) || (yy < 1) ||(mm == "") || (dd == "") || (yy == ""))
main = "Invalid";
else
if (((mm == 4) || (mm == 6) || (mm == 9) || (mm == 11)) && (dd > 30))
main = "Invalid";
else
if (mm == 2) {
if (dd > 29)
main = "Invalid";
else if((dd > 28) && (!lyear(yy)))
main="Invalid";
}
else
if((yy > 9999)||(yy < 0))
main = "Invalid";
else
main = main;
if(main == "valid") {
function leapyear(a) {
if(((a % 4 == 0) && (a % 100 != 0)) || (a % 400 == 0))
return true;
else
return false;
}
days = new Date();
gdate = days.getDate();
gmonth = days.getMonth();
gyear = days.getYear();
age = gyear - yy;
if((mm == (gmonth + 1)) && (dd <= parseInt(gdate))) {
age = age;
}
else {
if(mm <= (gmonth)) {
age = age;
}
else {
age = age - 1;
}
}
if(age == 0)
age = age;
document.form1.age.value=" You are " + age+ " years old & ";
if(mm <= (gmonth + 1))
age = age - 1;
if((mm == (gmonth + 1)) && (dd > parseInt(gdate)))
age = age + 1;
var m;
var n;
if (mm == 12) { n = 31 - dd; }
if (mm == 11) { n = 61 - dd; }
if (mm == 10) { n = 92 - dd; }
if (mm == 9) { n = 122 - dd; }
if (mm == { n = 153 - dd; }
if (mm == 7) { n = 184 - dd; }
if (mm == 6) { n = 214 - dd; }
if (mm == 5) { n = 245 - dd; }
if (mm == 4) { n = 275 - dd; }
if (mm == 3) { n = 306 - dd; }
if (mm == 2) { n = 334 - dd; if(leapyear(yy)) n = n + 1; }
if (mm == 1) { n = 365 - dd; if (leapyear(yy)) n = n + 1; }
if (gmonth == 1) m = 31;
if (gmonth == 2) { m = 59; if (leapyear(gyear)) m = m + 1; }
if (gmonth == 3) { m = 90; if (leapyear(gyear)) m = m + 1; }
if (gmonth == 4) { m = 120; if (leapyear(gyear)) m = m + 1; }
if (gmonth == 5) { m = 151; if (leapyear(gyear)) m = m + 1; }
if (gmonth == 6) { m = 181; if (leapyear(gyear)) m = m + 1; }
if (gmonth == 7) { m = 212; if (leapyear(gyear)) m = m + 1; }
if (gmonth == { m = 243; if (leapyear(gyear)) m = m + 1; }
if (gmonth == 9) { m = 273; if (leapyear(gyear)) m = m + 1; }
if (gmonth == 10) { m = 304; if (leapyear(gyear)) m = m + 1; }
if (gmonth == 11) { m = 334; if (leapyear(gyear)) m = m + 1; }
if (gmonth == 12) { m = 365; if (leapyear(gyear)) m = m + 1; }
totdays = (parseInt(age) * 365);
totdays += age / 4;
totdays = parseInt(totdays) + gdate + m + n;
document.form1.answer.value = "" + totdays +" days ";
months = age * 12;
months += 12 - parseInt(mm);
months += gmonth;
document.form1.months.value = months + " Months";
if (gmonth == 1) p = 31 + gdate;
if (gmonth == 2) { p = 59 + gdate; if (leapyear(gyear)) m = m + 1; }
if (gmonth == 3) { p = 90 + gdate; if (leapyear(gyear)) p = p + 1; }
if (gmonth == 4) { p = 120 + gdate; if (leapyear(gyear)) p = p + 1; }
if (gmonth == 5) { p = 151 + gdate; if (leapyear(gyear)) p = p + 1; }
if (gmonth == 6) { p = 181 + gdate; if (leapyear(gyear)) p = p + 1; }
if (gmonth == 7) { p = 212 + gdate; if (leapyear(gyear)) p = p + 1; }
if (gmonth == { p = 243 + gdate; if (leapyear(gyear)) p = p + 1; }
if (gmonth == 9) { p = 273 + gdate; if (leapyear(gyear)) p = p + 1; }
if (gmonth == 10) { p = 304 + gdate; if (leapyear(gyear)) p = p + 1; }
if (gmonth == 11) { p = 334 + gdate; if (leapyear(gyear)) p = p + 1; }
if (gmonth == 12) { p = 365 + gdate; if (leapyear(gyear)) p = p + 1; }
weeks = totdays / 7;
weeks += " weeks";
weeks = parseInt(weeks);
document.form1.weeks.value = weeks + " Weeks";
var time = new Date();
ghour = time.getHours();
gmin = time.getMinutes();
gsec = time.getSeconds();
hour = ((age * 365) + n + p) * 24;
hour += (parseInt(age / 4) * 24);
if(ap == 0)
hour = hour - hr;
else {
if(ap == 1) {
hour = hour - (11 + hr)
}
}
document.form1.hours.value = hour + " Hours";
var min;
min = (hour * 60) + gmin;
document.form1.min.value = min + " Minutes";
sec = (min * 60) + gsec;
document.form1.sec.value = sec + " Seconds";
var millisec;
var gmil;
gmil = days.getMilliseconds();
millisec = (sec * 1000) + gmil;
document.form1.milli.value = millisec + " Milliseconds";
mm = mm - 1;
var r;
if(mm == 0) r = 1;
if(mm == 1) r = 31;
if(mm == 2) { r = 59; if (leapyear(gyear)) m = m + 1; }
if(mm == 3) { r = 90; if (leapyear(gyear)) r = r + 1; }
if(mm == 4) { r = 120; if (leapyear(gyear)) r = r + 1; }
if(mm == 5) { r = 151; if (leapyear(gyear)) r = r + 1; }
if(mm == 6) { r = 181; if (leapyear(gyear)) r = r + 1; }
if(mm == 7) { r = 212; if (leapyear(gyear)) r = r + 1; }
if(mm == { r = 243; if (leapyear(gyear)) r = r + 1; }
if(mm == 9) { r = 273; if (leapyear(gyear)) r = r + 1; }
if(mm == 10) { r = 304; if (leapyear(gyear)) r = r + 1; }
if(mm == 11) { r = 334; if (leapyear(gyear)) r = r + 1; }
if(mm == 12) { r = 365; if (leapyear(gyear)) r = r + 1; }
mm = mm + 1;
r = parseInt(r) + parseInt(dd);
if( mm > (gmonth + 1)) {
bday = r - m - gdate;
}
else {
if(mm == (gmonth + 1) && (gdate < dd)) {
bday = (r - m - gdate);
}
else {
if((leapyear(gyear)) && ((mm > 2) && (dd < 29))) {
a = 366;
}
else {
a = 365;
}
bday = a + (r - m - gdate);
}
}
nhour = 24-parseInt(ghour);
nmin = 60 - parseInt(gmin);
nsec = 60 - parseInt(gsec);
go();
if(((bday == 366) && (leapyear(yy))) || ((bday == 365) && (!leapyear(yy)))) {
document.form1.bday.value = "today is your birthday";
alert("Happy Birthday");
} else {
document.form1.bday.value = bday + " days " + nhour + " hours " + nmin + " minutes " + nsec + " seconds";
setTimeout("run()", 1);
}
function go() {
function lyear(a) {
if(((a % 4 == 0) && (a % 100 != 0)) || (a % 400 == 0)) return true;
else return false;
}
mm = parseInt(mm);
dd = parseInt(dd);
yy = parseInt(yy);
if ((mm < 1) || (mm > 12) || (dd < 1) || (dd > 31) || (yy < 1) ||(mm == " ") || (dd == " ") || (yy == " ")) main="Invalid";
else
if (((mm == 4) || (mm == 6) || (mm == 9) || (mm == 11)) && (dd > 30)) main = "Invalid";
else
if (mm == 2) {
if (dd > 29)
main = "Invalid";
else
if(( dd > 28) && (!lyear(yy)))
main = "Invalid";
}
else main = main;
if(main == "valid") {
var m;
if (mm == 1) n = 31;
if (mm == 2) n = 59 + 1;
if (mm == 3) n = 90 + 1;
if (mm == 4) n = 120 + 1;
if (mm == 5) n = 151 + 1;
if (mm == 6) n = 181 + 1;
if (mm == 7) n = 212 + 1;
if (mm == n = 243 + 1;
if (mm == 9) n = 273 + 1;
if (mm == 10) n = 304 + 1;
if (mm == 11) n = 334 + 1;
if (mm == 12) n = 365 + 1;
if((mm == 1)||(mm == 3)||(mm == 5)||(mm == 7)||(mm == ||(mm == 10)||(mm == 12))
n += 31 + dd;
else if((mm == 4)||(mm == 6)||(mm == 9)||(mm == 11))
n += 31 + dd + 1;
else if(mm == 2) {
if(lyear(yy)) n += 29 + dd - 3;
else if(!lyear(yy)) n += 28 + dd - 1;
}
fours = yy / 4;
hunds = yy / 100;
fhunds = yy / 400;
var day;
day = (yy + n + fours - hunds + fhunds) % 7;
day = parseInt(day)
switch(day)
{
case 1 : document.form1.age.value +=" you were born on a Sunday"
break
case 2 : document.form1.age.value +=" you were born on a Monday"
break
case 3 : document.form1.age.value +=" you were born on a Tuesday"
break
case 4 : document.form1.age.value +=" you were born on a Wednesday"
break
case 5 : document.form1.age.value +=" you were born on a Thursday"
break
case 6 : document.form1.age.value +=" you were born on a Friday"
break
case 7 : document.form1.age.value +=" you were born on a Saturday"
break
case 0 : document.form1.age.value +=" you were born on a Saturday"
break
}
}
else {
document.form1.age.value += main + " Date";
}
}
}
else {
document.form1.age.value = main + " Date";
document.form1.months.value = "";
document.form1.weeks.value = "";
document.form1.answer.value = "";
document.form1.hours.value = "";
document.form1.min.value = "";
document.form1.sec.value = "";
document.form1.bday.value = "";
document.form1.milli.value = "";
}
}
// End -->
</script>

</HEAD>

<!-- STEP TWO: Insert the onLoad event handler into your BODY tag -->

<BODY onLoad="start()">

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

<CENTER>


Enter your date of birth


<FORM name=form1>
Month<INPUT name=month size=3>
Date<INPUT name=day size=3>
Year<INPUT name=year size=6>
Hours<INPUT name=hrs value=00 size=6>
<select size="1" name="ampm">
<option selected>AM</option>
<option>PM</option>
</select>
<INPUT name=start onclick=run() type=button value="Calculate">
<BR>
<BR>
<INPUT name=age size=55 value="Your age will be displayed here">
<BR>
<BR>
You have been living for:
<BR>
<TABLE border = 0>
<TBODY>
<TR>
<TD>In months:</TD>
<TD><INPUT name=months size=30></TD>
</TR>
<TR>
<TD>In weeks:</TD>
<TD><INPUT name=weeks size=30></TD>
</TR>
<TR>
<TD>In days:</TD>
<TD><INPUT name=answer size=30></TD>
</TR>
<TR>
<TD>In hours:</TD>
<TD><INPUT name=hours size=30></TD>
</TR>
<TR>
<TD>In minutes:</TD>
<TD><INPUT name=min size=30></TD>
</TR>
<TR>
<TD>In seconds:</TD>
<TD><INPUT name=sec size=30></TD>
</TR>
<TR>
<TD>In Milliseconds:</TD>
<TD><INPUT name=milli size=30></TD>
</TR>
</TBODY>
</TABLE>
Your next birthday will be in:
<BR>
<INPUT name=bday size=40>
</FORM>
</CENTER>

<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided

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

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

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Yazı Efekti

<html>
<head>
<meta name="author" content="yilmaz"><!--bu metayi -->
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254"><!--ve bu metayi <head></head> arasina eklerseniz türkce karekter sorunu olmaz-->
<meta http-equiv="content-language" content="tr">
<title>Buraya ne yazarsan yukarda en üstte o görünür</title>

<script language="JavaScript">
/* Copyright (c) 2000 delikan */
var tx = new Array ("Delikan web sitesi", "Hareketli yazi efekti!", "istediginiz sekilde degistiriniz.", "(¯`·.¸¸.·´¯`·.¸¸.-> webmaster delikan<-.¸¸.·`¯´·.¸¸.·`¯)");
var txcount=5;

var i=1;
var wo=0;
var ud=1;
function animatetitle()
{
window.document.title=tx[wo].substr(0, i)+"_";
if (ud==0) i--;
if (ud==1) i++;
if (i==-1) {ud=1;i=0;wo++;wo=wo%txcount;}
if (i==tx[wo].length+10) {ud=0;i=tx[wo].length;}
// if (window.document.title.length < 20 ) window.document.title=window.document.title+"-";
// if (window.document.title.length == 20 ) window.document.title=window.document.title+"]";
// if (window.document.title.length == 21 ) setTimeout("window.document.title='Animierte Seitentitel '; ",1000);

parent.window.document.title=tx[wo].substr(0, i)+"_";
setTimeout("animatetitle()",100);
}

</script>
</HEAD>
<body text="#000000" bgcolor="#FFFFFF" link="#FF0000" alink="#FF0000" vlink="#FF0000" onLoad="animatetitle()">
<div align="center"><h2>Browserinizin en üstüne bakınız!!</h2></div>
</body>
</html>​
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Şartlı Giriş

<!-- TWO STEPS TO INSTALL AGREE BEFORE ENTRY:

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

<!-- STEP ONE: Paste 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

agree = 0; // 0 means 'no', 1 means 'yes'

// End -->
</script>
</HEAD>

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

<BODY>

<center>
<form name=enableform>
You can only enter your name if you agree to the terms. (just a demo)



<input type=radio name='enable' value='agree' onClick="agree=1; document.enableform.box.focus();">I agree

<input type=radio name='enable' value='disagree' onClick="agree=0; document.enableform.box.value='';">I disagree


Please enter your name:

<input type=text name=box onFocus="if (!agree)this.blur();" onChange="if (!agree)this.value='';" size=12>




<input type=submit value="Done!">
</form>
</center>

<p><center>

by <a href="javascript:if(confirm('http://javascriptsource.com/ \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://javascriptsource.com/'" tppabs="http://javascriptsource.com/">The JavaScript Source</a></font>
</center><p>

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

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Taksit Hesaplama

<!-- TWO STEPS TO INSTALL TAX CALCULATOR:

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">
<!-- Original: Tim Wallace

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

<!-- Begin
function fmtPrice(value) {
result="$"+Math.floor(value)+".";
var cents=100*(value-Math.floor(value))+0.5;
result += Math.floor(cents/10);
result += Math.floor(cents%10);
return result;
}
function compute() {
var unformatted_tax = (document.forms[0].cost.value)*(document.forms[0].tax.value);
document.forms[0].unformatted_tax.value=unformatted_tax;
var formatted_tax = fmtPrice(unformatted_tax);
document.forms[0].formatted_tax.value=formatted_tax;
var cost3= eval( document.forms[0].cost.value );
cost3 += eval( (document.forms[0].cost.value)*(document.forms[0].tax.value) );
var total_cost = fmtPrice(cost3);
document.forms[0].total_cost.value=total_cost;
}
function resetIt() {
document.forms[0].cost.value="19.95";
document.forms[0].tax.value=".06";
document.forms[0].unformatted_tax.value="";
document.forms[0].formatted_tax.value="";
document.forms[0].total_cost.value="";
}
// End -->
</SCRIPT>

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

<BODY>

<CENTER>
<FORM>
<TABLE BORDER=2 WIDTH=300 CELLPADDING=3>
<TR>
<TD align="center"><FONT SIZE=+1><STRONG>Cost</STRONG></FONT>
<TD align="center"><FONT SIZE=+1><STRONG>Tax</STRONG></FONT>
</TR>
<TR>
<TD align="center"><INPUT TYPE="text" NAME="cost" VALUE="19.95" SIZE=10>
<TD align="center"><INPUT TYPE="text" NAME="tax" VALUE=".06" SIZE=10>
</TR>
</TABLE>
<BR>
<TABLE BORDER=1 WIDTH=600 CELLPADDING=3>
<TR>
<TD align="center"><FONT SIZE=+1><STRONG>Unformatted Tax</STRONG></FONT>
<TD align="center"><FONT SIZE=+1><STRONG>Formatted Tax</STRONG></FONT>
<TD align="center"><FONT SIZE=+1><STRONG>TOTAL COST</STRONG></FONT>
</TR>
<TR>
<TD align="center"><INPUT TYPE="text" NAME="unformatted_tax" SIZE=15>
<TD align="center"><INPUT TYPE="text" NAME="formatted_tax" SIZE=15>
<TD align="center"><INPUT TYPE="text" NAME="total_cost" SIZE=15>
</TR>
</TABLE>
<BR>
<TABLE BORDER=0 WIDTH=400 CELLPADDING=5>
<TR>
<TD align="center"><INPUT TYPE="reset" VALUE="RESET" onClick="resetIt()">
<TD align="center"><INPUT TYPE="button" VALUE="COMPUTE" onclick="compute()">
</TR>
</TABLE>
</CENTER>

<p><center>

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

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

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Tümünü Sectirme

<!-- ONE STEP TO INSTALL SELECT ALL:

1. Copy the coding into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the BODY of your HTML document -->

<BODY>

<form>
<textarea name="yourForm" rows=3 cols=40 wrap=virtual>
Any text that you want highlighted.

 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Yükleniyor Bar -dHtml

<html>
<head>
<title>DHTMLCentral.com - Free Dynamic HTML Scripts - LoadingBar Demo</title>
<meta name="Author" content="Thomas Brattli ([email protected])">
<META NAME="Generator" CONTENT="Designer:Thomas Brattli (www.bratta.com)">
<meta name="KeyWords" content="DHTML, HTML, Dynamic HTML, Javascript, Cascading Style Sheets, Cross-browser, Cross browser, Javascripts, DOM, Scripts, Free Scripts,loading,bar,loadingbar,images,load,hide,wait,">
<meta name="Description" content="Dynamic HTML Central - The ultimate place to find DHTML scripts, demos, tutorials and help.">
<style type="text/css">
#divLoadCont {position:absolute; z-index:500; left:0px; top:0px; width:100%; height:98%; clip:rect(0px 100% 100% 0px); background-color:#ffffff; layer-background-color:#ffffff;}
#divLoad1 {position:absolute; layer-background-color:silver; background-color:silver;}
#divLoad2 {position:absolute; left:0px; top:0px; layer-background-color:navy; background-color:navy;}
#divLoadText {position:absolute; background-color:transparent; font-family:arial,helvetica,sans-serif; color:navy; font-size:14px;}
</style>
<script language="JavaScript" type="text/javascript">
/**********************************************************************************
LoadingBar
* Copyright (C) 2001 <a href="/dhtmlcentral/thomas_brattli.asp">Thomas Brattli</a>
* This script was released at DHTMLCentral.com
* Visit for more great scripts!
* This may be used and changed freely as long as this msg is intact!
* We will also appreciate any links you could give us.
*
* Made by <a href="/dhtmlcentral/thomas_brattli.asp">Thomas Brattli</a>
*********************************************************************************/

function lib_bwcheck(){ //Browsercheck (needed)
this.ver=navigator.appVersion
this.agent=navigator.userAgent
this.dom=document.getElementById?1:0
this.opera5=this.agent.indexOf("Opera 5")>-1
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
this.ie=this.ie4||this.ie5||this.ie6
this.mac=this.agent.indexOf("Mac")>-1
this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
return this
}
var bw=new lib_bwcheck()



/*VARIABLES TO SET START: */
numImages = 10 //How many images you have in your page
loaderWidth = 300 //The width of the loadbar
/*
All other settings, like colors fonts and stuff like that you
have to change in the STYLE section.

IMPORTANT:
To make this actually show the correct results
you have to place THIS code in all images:
onload="loadIt(1)"

Which means that your image should look
something like this:
<img src="whatever.gif" width="10" border="0" height="10" onload="loadIt(1)">


VARIABLES TO SET END: */



// A unit of measure that will be added when setting the position of a layer.
var px = bw.ns4||window.opera?"":"px";

currentImg = 0
//Document size object ********
function lib_doc_size(){
this.x=0;this.x2=bw.ie && document.body.offsetWidth-20||innerWidth||0;
this.y=0;this.y2=bw.ie && document.body.offsetHeight-5||innerHeight||0;
if(!this.x2||!this.y2) return message('Document has no width or height')
this.x50=this.x2/2;this.y50=this.y2/2;
return this;
}

//Lib objects ********************
function lib_obj(obj,nest){
nest=(!nest) ? "":'document.'+nest+'.'
this.evnt=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document.layers." +obj):0;
this.css=bw.dom||bw.ie4?this.evnt.style:this.evnt;
this.ref=this.css
this.w=this.evnt.offsetWidth||this.css.clip.width||
this.ref.width||this.css.pixelWidth||0;
return this
}
//Moving object to **************
lib_obj.prototype.moveIt = function(x,y){
this.x=x; this.y=y; this.css.left=x+px; this.css.top=y+px;
}
//Clipping object to ******
lib_obj.prototype.clipTo = function(t,r,b,l,setwidth){
this.ct=t; this.cr=r; this.cb=b; this.cl=l
if(bw.ns4){
this.css.clip.top=t;this.css.clip.right=r
this.css.clip.bottom=b;this.css.clip.left=l
}else{
if(t<0)t=0;if(r<0)r=0;if(b<0)b=0;if(b<0)b=0
this.css.clip="rect("+t+"px "+r+"px "+b+"px "+l+"px)";
if (setwidth){
this.css.pixelWidth = r;
this.css.pixelHeight = b;
this.css.width = r+px;
this.css.height = b+px;
}
}
}
var oLoad2
function startLoading(){
page = new lib_doc_size()
oLoadCont = new lib_obj('divLoadCont')
oLoad = new lib_obj('divLoad1','divLoadCont')
oLoad2 = new lib_obj('divLoad2','divLoadCont.document.divLoad1')
oLoadText = new lib_obj('divLoadText','divLoadCont.document.divLoad1')
oLoad.moveIt(page.x50-loaderWidth/2,page.y50-20)
oLoadText.moveIt(loaderWidth/2 - oLoadText.w/2,10)
oLoad.clipTo(0,loaderWidth,40,0,1)
oLoad2.per = loaderWidth/numImages
}
function loadIt(ok){
currentImg ++
if (oLoad2) oLoad2.clipTo(0,oLoad2.per*currentImg,40,0,1)
if (!ok){
oLoadCont.css.visibility = "hidden"
oLoadCont = null;
oLoad1 = null;
oLoad2 = null;
}
}

//DISPLAY FUNCTION - DELETE START -------- DELETE THIS *************
//LEAVE THIS FUNCTION WHILE TESTING. DELETE WHEN READY
function loadIt_display(ok){
currentImg ++
if (oLoad2) oLoad2.clipTo(0,oLoad2.per*currentImg,40,0,1)
if (currentImg<=numImages) setTimeout("loadIt_display(1)",200)
else{
oLoadCont.css.visibility = "hidden"
}
}
//DISPLAY FUNCTION - DELETE END *************************************
</script>
</head>

<body marginleft="0" marginheight="0">
<!-- START DELETE -->
<div style="position:absolute; left:0; top:0"><a href="#" onclick="self.close(); return false"><img src="/images/logo.gif" width="165" height="54" alt="" border="0" alt="Click to close window"></a></div>




<!-- END DELETE -->

<!-- ALWAYS HAVE THIS RIGHT AFTER THE BODY START TAG -->
<div id="divLoadCont">
<div id="divLoad1">
<div id="divLoad2"></div>

<div id="divLoadText">Loading...</div>
</div>
</div>
<script>
startLoading()
//onload=loadIt; //- LEAVE THIS LINE WHILE TESTING. UNCOMMENT WHEN READY
loadIt_display(1) //LEAVE THIS LINE WHILE TESTING. DELETE WHEN READY
</script>




CONTENT





</body>
</html>​
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Yüzde Hesaplama

<!-- TWO STEPS TO INSTALL PERCENT CALCULATOR:

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

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

<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Tom Richardson Jr. ([email protected]) -->

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

<!-- Begin
function calc1(form) {
a = form.a.value/100;
b = a*form.b.value;
form.total1.value = b;
}
function calc2(form) {
a = form.c.value;
b = form.d.value;
c = a/b;
d = c*100;
form.total2.value = d;
}

// End -->
</script>


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

<center>
<form name="form1">
<table border=1 cellpadding=4 cellspacing=1>
<tr>
<td align=center>What is
<input type="text" name="a" size=5>
% of <input type="text" name="b" size=5>?</td>
<td align=center>Answer: <input type="text" name="total1"
size=5 maxlength=40></td>
<td align=center><input type="button" value="Calculate"
onClick="calc1(this.form)"></td>
</tr>
<tr>
<td align=center colspan=3 align=center>Or...</td>
</tr>
<tr>
<td align=center><input type="text" name="c" size=5>
is what
percent of <input type="text" name="d" size=5>?</td>
<td align=center>Answer: <input type="text" name="total2"
size=5> %</td>
<td align=center><input type="button" value="Calculate"
onClick="calc2(this.form)"></td>
</tr>
</table>
</form>
</center>

<p><center>

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

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

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Varış Hesaplama

<!-- TWO STEPS TO INSTALL LAP TIME:

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

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

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Geoff Greer ([email protected]) -->

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

<!-- Begin
function calc(form) {
var laps = (isNaN( parseInt(form.laps.value) )) ? 0 : parseInt(form.laps.value);
if (laps) {
var minutes = (form.minutes.value == "") ? 0 : parseInt(form.minutes.value);
var seconds = (form.seconds.value == "") ? 0 : parseInt(form.seconds.value);
return( ((minutes * 60 + seconds) / laps) + " seconds");
}
else return ("");
}
// End -->
</script>
</HEAD>

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

<BODY>

<center>
<form name=raceform>
<table border=1 width=300>
<tr>
<td>Number of laps:</td>
<td><input type=text name=laps size=2></td>
</tr>
<tr>
<td>Desired time:</td>
<td><input type=text name=minutes size=2>:<input type=text name=seconds size=2> (mm:ss)</td>
</tr>
<tr>
<td colspan=2 align=center><input type=button value="Calculate" onclick="this.form.laptime.value=calc(this.form);"></td>
</tr>
<tr>
<td>Avg. Lap Time:</td>
<td><input type=text name=laptime></td>
</tr>
</table>
</form>
</center>

<p><center>

by <a href="javascript:if(confirm('http://javascriptsource.com/ \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://javascriptsource.com/'" tppabs="http://javascriptsource.com/">The JavaScript Source</a></font>
</center><p>

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

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Sitede Arama

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
var item = new Array();

/* Here is where all the magic happens.
Just enter as many additional pages that
that you want to search, then fill in the
additional listings for each page.
*/

// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"

c=0; item[c]=new Array("index.html","","DemoSite","index,main,start,home,front","Demonstration search engine data about an imagined but probable internet site.");
c++; item[c]=new Array("about.htm","","About Me","about,author,contact,email,who","Contact details and general information about the creator of the site and what the site is about.");
c++; item[c]=new Array("links.htm","","Links page","links,more,where,similar,friends","Links to my favourite sites which I find interesting. Other friends sites which have similar interests to my own.");
c++; item[c]=new Array("main.htm","main/","Main Page","content,main,focus","The main part of my site which contains what you have come to see. Lots of stuff like that and more great things. All in a sub directory.");
c++; item[c]=new Array("logo.jpg","main/images/","Link Logo","link,image,logo,graphic","The logo.jpg is just a small image which you can place on your site as a link to me. It's in a second level subdirectory.");

page="<html><head><title>Search Results</title></head><body bgcolor='white'><center><table border=0 cellspacing=10 width=80%>";


function search(frm) {
win = window.open("","","scrollbars");
win.document.write(page);
txt = frm.srchval.value.split(" ");
fnd = new Array(); total=0;
for (i = 0; i < item.length; i++) {
fnd = 0; order = new Array(0, 4, 2, 3);
for (j = 0; j < order.length; j++)
for (k = 0; k < txt.length; k++)
if (item[order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "")
fnd += (j+1);
}
for (i = 0; i < fnd.length; i++) {
n = 0; w = -1;
for (j = 0;j < fnd.length; j++)
if (fnd[j] > n) { n = fnd[j]; w = j; };
if (w > -1) total += show(w, win, n);
fnd[w] = 0;
}
win.document.write("</table>
Total found: "+total+"
</body></html>");
win.document.close();
}
function show(which,wind,num) {
link = item[which][1] + item[which][0];
line = "<tr><td><a href='"+link+"'>"+item[which][2]+"</a> Score: "+num+"
";
line += item[which][4] + "
"+link+"</td></tr>";
wind.document.write(line);
return 1;
}
// End -->
</script>
</HEAD>

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

<BODY>

<center>

<form method=get action="javascript:void(0)" onsubmit="search(this); return false;">
<tr><td><input type=text name=srchval value=""><input type=submit value="Search"></td></tr>
</form>

</center>
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Sayıların Katlarını Hesaplama

<!-- TWO STEPS TO INSTALL PRIME NUMBER CALCULATOR:

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 -->

<SCRIPT LANGUAGE="JavaScript">

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

<!-- Begin
function calculate(form) {
var num=parseInt(form.number.value);
if (isNaN(num) || num < 0) {
form.result.value=(form.number.value + " is not a valid number! Try again!");
}
if (num == 1 || num == 2) {
form.result.value=(num + " is prime!");
}
for (var i=2;i<num;i++) {
if (num % i == 0) {
var prime="yes";
form.result.value=(num + " is not prime. It is divisible by " + i + ".");
break;
}
if (num % i != 0) var prime="no";
}
if (prime == "no") form.result.value=(num + " is prime!");
}
// End -->
</SCRIPT>
</HEAD>

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

<center>
<form name=form>
<h2>Prime Number Calculator</h2><p>
Please enter a number:

<input type=text name=number size=7>
<input type=button value="Calculate" onClick="calculate(this.form)">
<P>
<input type=text name=result size=45 value="">
</form>
</center>

<p><center>

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

<!-- Script Size: 0.88 KB -->
 

kadem

Profesör
Katılım
19 Ağu 2006
Mesajlar
1,622
Tepkime puanı
2
Puanları
0
Siteye Yönlendirme

<!-- saved from url=(0036)http://members.tripod.com/gti_power/ -->
<html>

<head>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1254">
<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
<title>www.hazirkod.com</title>
</head>

<body>
<script language="JavaScript"><!--

var folder="bb_jscript.htm"
var newURL="http://www.musluman.biz/"+folder
function countDown() {
var newValue = parseInt(document.myForm.numberShown.value)-1
document.myForm.numberShown.value = newValue
if (newValue > 0) {
myTimer=setTimeout("countDown()",1000)
}else{
clearTimeout("myTimer")
location.href="http://iyimser.8m.com"
}
}
// --></script><script
language="JavaScript">
<!--
function getCurrentPage() {
var all_cookies = this.document.cookie;
if (all_cookies == '') {
return false; // No cookies found.
}

var cookie_name = 'MEMBER_PAGE=';
var start = all_cookies.lastIndexOf(cookie_name);
if (start == -1) {
return false; // Member page URL not found.
}
start += cookie_name.length; // Skip name.

var end = all_cookies.indexOf(';', start);
if (end == -1) {
end = all_cookies.length; // Only cookie left.
}

return all_cookies.substring(start, end);
}

// -->
</script>

<form name="myForm">
<p align="center"> </p>
<p align="center"><font color="#0000FF" size="7"><em><strong>iyimser.8m.com
</strong></em></font></p>
<p align="center"> </p>
<p align="center">Eğer browseriniz JavaScript destekliyorsa;
<input type="text" size="2" name="numberShown" align="right">
saniye içinde



"www.ihvan-forum.com " ne bağlanacaksınız... </p>
</form>
<script language="JavaScript"><!--

// yukleme suresi 10 saniye.
document.myForm.numberShown.value="10"
countDown()
// --></script>

<p align="center"><font size="2" face="Verdana"><strong></strong></font> </p>

<p align="center"><font size="2" face="Verdana"><strong></strong></font> </p>

<p align="center"><font size="2" face="Verdana"><strong>Eğer
Desteklemiyorsa Aşağıdaki Linki Tıklayın.</strong></font></p>

<p align="center"><font size="2"
face="Verdana"><strong>http://musluman.biz</strong></font></p>
</body>
</html>​
 
Üst