MyBBThemes Community

Full Version: Prank Your Members :P
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
This is just a very simple code to prank your members. It create a button which upon click, a message displays saying they've been pranked.

You can do this 2 ways: Make them click the button, or a more annoying way, just by moving their mouse over it!

Code (Click):

Code:
<input type="Submit" value="Click Here!" name="prank1" onclick="alert('Ha! You have just been pranked!')" />

Code (Mouse over):

Code:
<input type="Submit" value="Click Here!" name="prank1" onmouseover="alert('Ha! You have just been pranked!')" />

For both of them, simply change value="Click Here!" with value="Your Text!", and edit "Your Text!" to what you want the button to say.

To change the alert message, change "alert('Ha! You have just been pranked!')" with "alert('Your Text!')" and replace "Your Text!" with your message.

Sorry if I posted this in the wrong place, but my friend has done this to his site before so I said why not :)
It's a trick, so why not post it here. :P That would be funny.. April fools joke... *thinks*
This would be funny to do on April Fool's day. Make everyone think they'll get some neat thing for free, only to be told "April Fool's Day!"...though it might upset some of them. LOL
A little note: Do NOT put a ' in the alert message, or the code will mess up, because the browser thinks the code is over when you put a ' because that is what ends the alert. That's why I put "You have" instead of "You've" :wink:
.Paradox Wrote:A little note: Do NOT put a ' in the alert message, or the code will mess up, because the browser thinks the code is over when you put a ' because that is what ends the alert. That's why I put "You have" instead of "You've" :wink:

Well.. Shouldn't
Code:
<input type="Submit" value="Click Here!" name="prank1" onclick="alert('Ha! You\'ve just been pranked!')" />
work?
Nice trick and I'm sure I'll unleash this onto my members in the near future.
BlueDevil Wrote:Well.. Shouldn't
Code:
<input type="Submit" value="Click Here!" name="prank1" onclick="alert('Ha! You\'ve just been pranked!')" />
work?
Is THAT how you get around that? I'll have to keep that in mind.
Woah, I totally overlooked this. Nice job .Paradox :D What would be even funnier is if you could make the button redirected to a video of Rick Roll, lol.
you could do that if you want
I hate being rick rolled! It would be a good idea to trick them into clicking it and making them be rick rolled
Pages: 1 2
Reference URL's