[Javascript release]Ask Mustafa menu

User Tag List

Results 1 to 1 of 1
  1. #1
    bsod-staff14's Avatar Member
    Reputation
    35
    Join Date
    Nov 2008
    Posts
    443
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Javascript release]Ask Mustafa

    Hello, Matt from Immortal GamerZ!

    Releasing a script I have I will be releasing a lot of java scripts that my friends have made for my website. Well here is Ask Mustafa!

    Code:
    <!-- 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 ([email protected]) -->
    <!-- Web Site:  http://www.angelfire.com/pa3/muddas -->
    <!-- Modified By:  Ronnie T. Moore, Editor -->
    
    <! >
    <! >
    
    <!-- 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="../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>
    
     
    
    <!-- Script Size:  2.32 KB -->
    Immortal GamerZ Under Development!

    [Javascript release]Ask Mustafa

Similar Threads

  1. Replies: 45
    Last Post: 01-23-2007, 09:55 PM
  2. [Release] Herbs to flag
    By Dave-evad in forum World of Warcraft Model Editing
    Replies: 9
    Last Post: 11-26-2006, 03:31 PM
  3. anti-warden Release #1
    By zhPaul in forum World of Warcraft Bots and Programs
    Replies: 40
    Last Post: 10-21-2006, 01:40 AM
  4. No Asking For Glider Cracks. Period.
    By Tory in forum World of Warcraft Bots and Programs
    Replies: 0
    Last Post: 09-30-2006, 07:46 PM
  5. Some model changes, i will do for u just ask!
    By bloodofwar in forum World of Warcraft Model Editing
    Replies: 23
    Last Post: 08-21-2006, 06:32 AM
All times are GMT -5. The time now is 07:13 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search