Add to Google

What's With This?

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > Java, Java Servlets, Java Script, & JSP

What's With This?

UnheroicHero
<script type="text/javascript">

var quotes = [

"User axed: Inty"
"User axed: Aziz Strife 7777"
"User axed: joeynova"
"User axed: Ricapar9x"
"User axed: bttfpromo"
"User axed: Heartless"
"User axed: curleyjoe1624"
"User axed: Lord Setar"
"User axed: Lion O"
"User axed: Unheroic Hero"
];

function getQuote()
{
var qs = document.getElementById("quote");
var quote = quotes[Math.floor(Math.random() * quotes.length)];

alert(quote);
}
</script>


<center><input onclick=getQuote() type="button" value="PIE"></center>


What's wrong with it?

Reply

Milk
Hey..I know you...

and what is that supposed to be? A list of all the users that have been axed from.....>_>?

Reply

UnheroicHero
How do you know me? Who are you?

About the button:
I'm trying to make a "PIE" button. Like the GameFAQs one.

Reply

Mike
Lol UnheroicHero! It's Helljumper from Sub-Zero dry.gif We know Milk from Sub-Zero since Milk registered recently. Oh and, I already made a button like that for Omega Gateway. But here is how you would want to do it.

Replace the text in red with your own values.

<script type="text/javascript">

var quotes = [

"You Banned: Unheroic Hero", <----Always use a comma when adding more than one quote!---

You can add as many quotes as you want..

];

function getQuote()
{
var qs = document.getElementById("quote");
var quote = quotes[Math.floor(Math.random() * quotes.length)];

alert(quote);
}
</script>

<input onclick=getQuote() type="button" value="Name of Button">

Reply

Mike
Well? Did it work? I use that script for most of the buttons I make and it works for me. In fact, I'm making a button right now! Similar to the one you are making, but for different message boards.

Reply

Milk
I don't know where I know you from...

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Similar Topics

Keywords : whats

  1. What's The Relationship Between Javascript And Java - are they the same or different (7)
    I think most of you always confuse about java and javascript .So I make this topic to talk about it.
    Javascript and Java ,they have the same first four letter. Java and Javascript is the two language
    is very popular in the web world.Java is the general-purpose programming language that you can
    create an application or an applet.Javascript is a script language that looks sort of like java;with
    it you can do various nifty things in web pages.They are independent languages ,used for different
    purposes.If you are interesting in creating a website you should learn how to w...
  2. Javascript - What's Your Browser? - (3)
  3. Whats The Classpath (for The Packages) On Trap17 - I don't want to recompile my classes 20x (2)
    Hi all.... I just moved from my local server to trap17 for testing my JSP and servlets... However I
    am having troubles with my servlet classes... when I put them under the WEB-INF/classes/ I
    don't know what the package on top of my classes should be, and how I include em in the JSP
    files..... Offcource I can find out but I'm to lazy to keep recompiling my classes untill it
    works /tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif' /> ... Tnx...
  4. What's Jsp - i dont know (4)
    No for real what is it...I've seen it used before(nintendo'site and others) is it like
    Java/JavaScript and if it is can someone post a link to a good tutorial and can someone post an
    example of it....



Looking for whats






*SIMILAR VIDEOS*
Searching Video's for whats

*MORE FROM TRAP17.COM*
advertisement



What's With This?