Admins eHow SysAdmin Tips & Tricks

April 9, 2010

Free Under construction page for your website

Filed under: General,HTML — Tags: , , , , , — admin @ 7:32 pm

You can download a free under construction page for your website here :

July 30, 2009

Disable submit button on click

Filed under: HTML,JavaScript — Tags: , , , , — admin @ 10:50 am

Are you looking for a JavaScript code to disable your HTML form submit button on first click to prevent double clicks ?
so here is the code 🙂 , it has been tested on IE 8 , Firefox 3.5 and Chrome. I am pretty sure it works on all browsers which support JavaScript.
Put the following code into <head> section of your page :

<script language="javascript" type="text/javascript">
function dis(){

and the following code into <form> section :


for example :

<form method="post" action="/index.php" onsubmit="dis();">

June 16, 2009

How to mirror a website on linux ?

Filed under: General,HTML — Tags: , , — admin @ 2:34 pm

You almost certainly have wget already. Try wget –help at the command line. If you get an error message, install wget with your Linux distribution’s package manager. Or fetch it from the official wget page and compile your own copy from source.

Once you have wget installed correctly, the command line to mirror a website is:

wget -m -k -K -E http://url/of/web/site

See man wget or wget –help | more for a detailed explanation of each option.

If this command seems to run forever, there may be parts of the site that generate an infinite series of different URLs. You can combat this in many ways, the simplest being to use the -l option to specify how many links “away” from the home page wget should travel. For instance, -l 3 will refuse to download pages more than three clicks away from the home page. You’ll have to experiment with different values for -l. Consult man wget for additional workarounds.

May 31, 2009

Wrap text in pre tag

Filed under: CSS,HTML — Tags: , , , , — admin @ 5:21 pm

use the following CSS code to wrap the lines in a pre html tag :

pre {
white-space: -moz-pre-wrap; /* Mozilla, supported since 1999 */
white-space: -pre-wrap; /* Opera 4 - 6 */
white-space: -o-pre-wrap; /* Opera 7 */
white-space: pre-wrap; /* CSS3 - Text module (Candidate Recommendation) */
word-wrap: break-word; /* IE 5.5+ */

Powered by WordPress