Paghahanap
Sponsors

Iphone redirection

Pebrero 14, 2010

kung (navigator.userAgent.match (/ iPhone / i)) (
/ / IPhone redirect?
)

Gumawa ng isang Natatanging ID

Pebrero 14, 2010

uniqeid function ()
(
var newDate = bagong Date;
bumalik newDate.getTime ();
)

Today's Petsa

30 Set 2009

<! - Kopyahin ang code na ito sa seksyon BODY ->

<SCRIPT LANGUAGE="JavaScript1.2">

<! - Magsimula
var buwan = bagong Array (13);
buwan [1] = "Enero";
buwan [2] = "Pebrero";
buwan [3] = "Marso";
buwan [4] = "Abril";
buwan [5] = "Mayo";
buwan [6] = "Hunyo";
buwan [7] = "Hulyo";
buwan [8] = "Agosto";
buwan [9] = "Septiyembre";
buwan [10] = "Oktubre";
buwan [11] = "Nobyembre";
buwan [12] = "Disyembre";
var time = bagong Date ();
var = lmonth buwan [time.getMonth () + 1];
var petsa = time.getDate ();
var taon = time.getYear ();
kung (taon <2000)
taon taon = 1900 +;
document.write ("<center>" + + lmonth "");
document.write (petsa + "," + taon + "</ center>");
/ / End ->
</ Script>
</ CENTER>

Area Calculator

30 Set 2009

<! - I-paste ito sa ulo ng iyong HTML dokumento ->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<! - Orihinal: Michael Hundt (mchundt@nglic.com) ->
<! - Web Site: http://www.cinet.net/ ~ mhundt / mystuff.htm ->

<! >
<! >

<! - Magsimula
function doArea (num) (
lumipat (num) (
kaso 0: bumalik (""); break;
kaso 1: var length = prompt ("Mangyaring ipasok ang haba ng iyong mga parisukat:", "");
haba haba = * haba;
bumalik (haba); break;
kaso 2: var width = prompt ("Mangyaring ipasok ang lapad ng base:", "");
var height = prompt ("Mangyaring ipasok ang taas ng tatsulok:", "");
bumalik (width * taas / 2); break;
kaso 3: var width = prompt ("Mangyaring ipasok ang lapad ng iyong parihaba:", "");
var height = prompt ("Mangyaring ipasok ang taas ng iyong parihaba:", "");
bumalik (width * taas); break;
kaso 4: var radius = prompt ("Mangyaring ipasok ang radius ng bilog ang:", "");
bumalik (Math.PI * Math.pow (radius, 2)); break;
kaso 5: var radius = prompt ("Mangyaring ipasok ang radious ng globo:", 0);
bumalik (4 * * Math.PI (Math.pow (radius, 2))); break;
)
)
/ / End ->
</ Script>
</ Head>

<! - Kopyahin ito sa BODY ng iyong HTML dokumento ->

<center>
<form name=calcarea>
Hanapin ang lugar ng isang
<piliin name="shape" size="1" onChange="this.form.area.value = doArea(this.selectedIndex);">
<option> ...
<option value="square"> Square
<option value="triangle"> Triangle
<option value="rectangle"> Parihaba
<option value="circle"> Circle
<option value="sphere"> globo
</ Select>
= <input Type=text name=area size=10>
</ Form>
</ Center>

Temperature ng Conversion

24 Set 2009
  code into the BODY of your HTML document --> 1: <! - ISANG HAKBANG: Kopyahin ang code na ito sa BODY ng iyong HTML dokumento -> 
  2: 
  either field, then click outside the text box. 3: Magpasok ng isang numero sa alinman sa patlang, pagkatapos ay i-click sa labas ng kahon ng teksto. 
  4: 
  5: <form> 
  6: F: 
  name= "F" value= "32" 7: <input type = "text" pangalan = "F" value = "32" 
  ><br> 8: onChange = "C.value = 100 / (212-32) * (this.value - 32)"> <br> 
  9: C: 
  name= "C" value= "0" 10: <input type = "text" pangalan = "C" value = "0" 
  ><br> 11: onChange = "F.value = (212-32) / 100 * this.value + 32"> <br> 
  12: </ form> 
Isalin