function getText0(Text, size, x, y, z, color, align) { var style = 'position: fixed; ' + 'top:' + y + 'px;' + 'left:' + x + 'px;' + 'color:' + color+ ';' + 'z-index: ' + 3 + ';' + 'font-size:'+size+'pt;' + 'font-weight:bold;' + 'font-variant:small-caps;' + 'width:100%;' + 'text-align:'+align+';'; return '<div style="' + style + '">' + Text + '</div>'; } function getText(Text, size, x, y, align) { var code = ""; //"<div style='margin:0;z-index:3;background-color:burlywood;opacity:0.4;>"; var dx = 2; var colors = new Array("red", "orange", "yellow", "green", "blue", "white"); for (s = 0; s < colors.length; s++) { code += getText0(Text, size, x + s * dx, y + s * dx, s + 2, colors[s], align); } // code += "</div>"; return code; }