【使い方】
string str =
"<script language=\"javascript\"><!--{TextBox}\n"
+ " function OnTextBoxFocusChanged(txtBox, foreColor, backColor) {\n"
+ " if ( foreColor != null && foreColor != \"#0\" ){\n"
+ " txtBox.style.color=foreColor;\n"
+ " }else{\n"
+ " txtBox.style.color=\"\";\n"
+ " }\n"
+ " if ( backColor != null && backColor != \"#0\" ){\n"
+ " txtBox.style.backgroundColor=backColor;\n"
+ " }else{\n"
+ " txtBox.style.backgroundColor=\"\";\n"
+ " }\n"
+ " }\n"
+ " --></script>\n";
|