OYUN: mustafaya sor :) soru botu gibi bişey

Javascript kodları OYUN: mustafaya sor :) soru botu gibi bişey Hazır program kodları hakkında bilgi paylaş; HTML-Kodu: <!-- TWO STEPS TO INSTALL ASK MUSTAFA: 1. Copy the coding into the HEAD of your HTML document ...
Cevapla
 
Seçenekler
  #1  
Arama 25-11-2007, 09:44
banias - ait Kullanıcı Resmi (Avatar)
Pseudo Coder
Üyelik Tarihi: 23/08/07
Mesajlar: 1.209
 
     WS-Ticareti: (2)
Blog Yazıları: 2
Teşekkürleri: 9
88 Msg. 154 Tşkr.
Rep Gücü: 100 banias has much to be proud ofbanias has much to be proud ofbanias has much to be proud ofbanias has much to be proud ofbanias has much to be proud ofbanias has much to be proud ofbanias has much to be proud ofbanias has much to be proud of

OYUN: mustafaya sor :) soru botu gibi bişey

HTML-Kodu:
<!-- TWO STEPS TO INSTALL ASK MUSTAFA:

  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:  Hoop Hooper (hooper119@aol.com) --> <!-- Web Site:  http://www.angelfire.com/pa3/muddas --> <!-- Modified By:  Ronnie T. Moore, Editor --> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin
var refusalarray = new Array(
"I'll Never Tell You!",
"I spit at the question!  Pptt!",
"Go To Hell, Powers!",
"I will take it to the grave with me!",
"Kiss my ass!",
"You can torture me if you like, I will never tell!",
"I will never tell you!",
"I cannot tell you!",
"My lips are sealed shut, you can't open them!"
); // No comma after last item on line above!

var answerarray = new Array(
"Damn, three times.  Yes! That's the answer!",
"No way.  There's your answer, you happy now?",
"Maybe.  Are you satisfied?",
"Yes, yes, of course!",
"Without a doubt!",
"Yeah, I think so.",
"Probably, why do you care though?"
); // No comma after last item on line above!
var num1, num2, tries = 0;

function ask(frm) {
if (frm.question.value == "") {
alert("Please type your question.");
frm.question.focus();
return "";
}
rand1 = Math.round( (refusalarray.length - 1) * Math.random());
rand2 = Math.round( (answerarray.length - 1) * Math.random());
tries++;
switch (tries) {
case 1 : 
case 2 : return refusalarray[rand1];
         break;
case 3 : return answerarray[rand2];
         break;
case 4 : tries = 0;
         frm.question.value = frm.answer.value = "";
	 return "";
         break;
   }
}
//  End --> </script> </HEAD> <!-- STEP TWO: Copy this code into the BODY of your HTML document  --> <BODY> <center> <img src="http://javascript.internet.com/img/ask-mustafa/mustafa.gif" width=122 height=167> <p> <h2>Ask Mustafa</h2> <p> <form name=mustafaform>
Your Question:  <input type=text name=question size=50> <p> <input type=button value="Ask Mustafa" onClick="this.form.answer.value = ask(this.form);"> <p>
Mustafa's Reply: <input type=text name=answer size=50> </form> </center> <p><center> <font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font> </center><p> <!-- Script Size:  2.32 KB -->
__________________
| | |
| |
|
|
|
Alıntı ile Cevapla
Cevapla


Seçenekler


Benzer Konular
Konu Konu Açanlar Forum Cevaplar Güncel Mesajlar
ara.com.tr (google gibi bişey) banias Türkçe Arama Motorları 51 26-08-2008 01:36
Adsense reklamlarına bişey oluyor!! toolss Google Adsense 9 03-07-2008 01:37
yok böyle bişey bakmayan cok pişman olur pc_copatım Online video 5 20-03-2008 07:30
Ogame Gibi Oyun Scripti Satilik!! tcmcem Script Satış 6 21-02-2008 08:15
Nasıl Akıllıca Soru Sorulur (nasıl mantıklı soru sorulur, etkili soru sorma) banias Makaleleriniz 0 25-11-2007 08:05

Link vermek için alttaki kodu sitenize ekleyebilirsiniz. Veya Ctrl+C ile Kopyalayınız
Örnek görünüm: Webmaster Sitesi