02-11-2008, 10:04 AM
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 (Mouse over):
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
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

That would be funny.. April fools joke... *thinks*
What would be even funnier is if you could make the button redirected to a video of Rick Roll, lol.