";
lyrstr1 = ""+ teststr +"";
if (loaded) {
document.body.insertAdjacentHTML("BeforeEnd",lyrstr0);
document.body.insertAdjacentHTML("BeforeEnd",lyrstr1);
}
else {
document.write(lyrstr0);
document.write(lyrstr1);
}
}
fntLyr1.style.fontFamily = fname +",Courier";
width0 = (isMac) ? fntLyr0.offsetWidth : fntLyr0.scrollWidth;
width1 = (isMac) ? fntLyr1.offsetWidth : fntLyr1.scrollWidth;
}
if(NS4){
lyrstr1 = ""+ teststr +"";
if(!window.fntLyr0) {
lyrstr0 = ""+ teststr +"";
if (loaded) {
fntLyr0 = new Layer(400);
fntLyr0.document.write(lyrstr0);
fntLyr0.document.close();
fntLyr1 = new Layer(400);
fntLyr1.document.write(lyrstr1);
fntLyr1.document.close();
}
else {
document.write(""+ lyrstr0 +"");
fntLyr0 = document.layers[document.layers.length-1];
document.write(""+ lyrstr1 +"");
fntLyr1 = document.layers[document.layers.length-1];
}
}
else {
if (loaded) {
fntLyr1.document.write(lyrstr1);
fntLyr1.document.close();
}
else {
document.write(""+ lyrstr1 +"");
fntLyr1 = document.layers[document.layers.length-1];
}
}
width0 = fntLyr0.clip.width;
width1 = fntLyr1.clip.width;
}
return (width0 != width1);
}
checkIfInstalled() expects two arguments:
fname:
a string font name to test
loaded:
a Boolean, or 0/1, specifying whether the page has loaded or not.
The function returns a Boolean value representing the existence of the font.
If nothing happens to this text when you make a change, it is because the property is not supported by your browser.
Both Internet Explorer and Netscape feature certain properties that the other does not support.
px - pixels, relative to the viewing device
em - the 'font-size' of the relevant font
ex - the 'x-height' of the relevant font
in - inches -- 1 inch is equal to 2.54 centimeters.
cm - centimeters
mm - millimeters
pt - points -- the points used by CSS2 are equal to 1/72th of an inch.
pc - picas -- 1 pica is equal to 12 points.
border-style :none,solid,double,groove,ridge,inset,outset
border-color :color name, hex value