Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

« Newer Snippets
Older Snippets »
3 total  XML / RSS feed 

Some good body fonts

// Some fonts that could be used for body copy

font:10pt 'Trebuchet MS',Arial,sans-serif;
font:76%/140% Verdana,Geneva,Arial,Helvetica,sans-serif;
font:76%/1.5 "Lucida Grande",Geneva,Verdana,Arial,Helvetica,sans-serif;
font:12px/1.5 "Lucida Grande","Lucida Sans Unicode", sans-serif;

Initialize XMLHttpRequest/ActiveXObject for use with AJAX

xmlHttp = false;
                
try {
        xmlHttp = new XMLHttpRequest();
} catch(Microsoft1) {
        try {
                xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
        } catch(failed) {
                xmlHttp = false;
        }
}
                
if(!xmlHttp) {
        alert("Error: Could Not Initialize XMLHttpRequest()!\r\n\r\nJavaScript must be enabled to view this page.");
}

Initialize XMLHttpRequest/ActiveXObject for use with AJAX

xmlHttp = false;
                
try {
        xmlHttp = new XMLHttpRequest();
} catch(Microsoft1) {
        try {
                xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
        } catch(failed) {
                xmlHttp = false;
        }
}
                
if(!xmlHttp) {
        alert("Error: Could Not Initialize XMLHttpRequest()!\r\n\r\nJavaScript must be enabled to view this page.");
}
« Newer Snippets
Older Snippets »
3 total  XML / RSS feed