Single line HTML
Posted: Sun Nov 29, 2009 5:13 am
You can easily create a scrollable text box with this one line <div> tag. You can put anything inside the scrollable area. This is a very simple one line alternative to the iframe.
Use this line to pre-load those mouseover images to avoid browser delay:
Get rid of the IE image toolbar with this one line in the <head> section of your html:
Disable the "right click" with the oncontextmenu parameter in your body tag (this parameter is not W3C standards compliant but it works with most browsers):
Disable autocomplete on any input field with the autocomplete parameter in your input tag:
You can tell search robots to index your main page and go no further with this one line in the <head> section of your html:
You can do a simple redirect to another page by putting this one line in the <head> section of your html.
The zero is how many seconds to wait before doing the redirect.
You can force a page refresh (to keep your content current) putting this one line in the <head> section of your html.
The 300 is how many seconds to wait before doing the refresh.
If your page does not need to scroll, in IE may still show the browser gutter (placeholder for the scrollbar).
Get rid of it with this one CSS line:
Code: Select all
<div style="padding: 20px; overflow: auto; border: solid 1px black; width: 400px; height: 300px;">
Content goes here
<div >
Code: Select all
<img src="image.gif" alt="" style="display: none;">
Code: Select all
<meta http-equiv="imagetoolbar" content="no">
Code: Select all
<body oncontextmenu="return false">
Code: Select all
<input . . . autocomplete="off">
Code: Select all
<meta name="ROBOTS" content="INDEX,NOFOLLOW">
The zero is how many seconds to wait before doing the redirect.
Code: Select all
<meta http-equiv="refresh" content="0;URL=http://yourdomain.com/anypage.htm">
The 300 is how many seconds to wait before doing the refresh.
Code: Select all
<meta http-equiv="refresh" content="300">
Get rid of it with this one CSS line:
Code: Select all
html {overflow:auto;}